使い方マニュアル

対象:VeqSQL 0.1系(Windows) 最終更新:2026年11月24日

1. データベースに接続する

  1. 画面左の「+」から、新しい接続を作ります。データベースの種類を選び、接続先、ユーザー名、パスワードを入力します。
  2. 「接続テスト」で確認し、「保存」します。
  3. 左のツリーに接続が追加されます。ツリーの接続名から、接続します。
  • パスワード:WindowsやmacOSの資格情報ストアに保存され、設定ファイルには書き込まれません。
  • SQLiteとAccess:ファイル(.db・.sqlite・.sqlite3・.db3・Accessのファイル)を、画面にドラッグ&ドロップすると、接続の登録画面に進みます。接続名を付けて「保存して接続」します。SQLファイルをドロップすると、エディタで開きます。
  • 読み取り専用:接続ごとに指定できます。SQLite・MySQL・PostgreSQLでは、DB側の設定でも書き込みを防ぎます。SQL Server・ODBC・Access・Oracleは、アプリ側の抑止が中心なので、DB側にも読み取り専用の権限を使ってください。
  • 通信の暗号化(TLS):PostgreSQL・MySQL/MariaDB・SQL Serverでは、接続の設定で方式を選べます。通常は「CAとホスト名を検証(推奨)」をおすすめします。

2. SQLを書いて実行する

操作ショートカット・ボタン
新しいクエリのタブCtrl+T(「+」)
SQLファイルを開く/保存Ctrl+O/Ctrl+S
すべて実行F5
選択範囲、またはカーソル位置の1文だけを実行Ctrl+Enter(右クリックのメニューにもあります)
補完Ctrl+Space
SQLを整形(範囲選択中は、その部分のみ)Ctrl+Shift+F
実行を止める「停止」ボタン
  • パラメータ:SQLの中に :名前 と書くと、「パラメータ」ボタンで値を設定して実行できます。
  • ツリーから:テーブルをダブルクリックすると、その表のSQLを作成します。名前の挿入にも使えます。
  • 履歴と復元:「SQL実行履歴」で過去のSQLを検索し、新しいタブに開けます。誤って閉じたタブは、「閉じたタブを復元」で戻せます。「最近使ったファイル」もあります。
  • 文字コードと改行:画面右下で選べます。SQLファイルは、元の文字コード・BOM・改行を保って保存します。
  • コミットとロールバック:更新を実行すると、未コミットの状態になります。結果を確認してから、「コミット」または「ロールバック」を押します。

3. 更新前の確認

これがVeqSQLの中心の機能です。

UPDATE・DELETE

  1. SQLを実行すると、確認の画面が開きます。対象の行(更新なら変更後の見込みも)が表示されます。
  2. 画面に表示された内容を確認し、対象の件数を入力して承認します。
  3. 承認すると、実行されます。承認した内容と異なるSQLや接続では実行されません。
  4. 実行後の影響件数が、承認した件数と一致しない場合や、不明な場合は、全体をロールバックして止まります。後ろのSQLも実行されません。

画面に表示されるのは、全件数と、先頭50行です。表示されない行があっても、件数の入力は必須です。

DROP・TRUNCATE

対象の名前を、そのまま入力して承認します。DBごとの対応状況は、メニューの「DDLの対応状況」で確認できます。

確認できる件数の上限

既定は5,000件です。「設定」→「確認対象の上限件数」で、10,000・50,000・100,000件、カスタム(1~1,000,000件)、無制限から選べます。上限を上げると、画面表示が重くなり、メモリと確認の時間が増えます。無制限でも、取得容量・確認時間・ドライバーの制約は適用されます。上限を超える場合や、完全に確認できない場合は、実行せずに止まります。

確認の対象外

確認の対象は、SQL本文に直接書かれたUPDATE・DELETE・DROP・TRUNCATEです。ストアドプロシージャ、動的SQL、MERGE、EXEC などの内部の変更は、事前に確認できません。重要なデータでは、事前にバックアップを取り、本番とは別の環境で試してください。

4. 結果を扱う

  • 表示:結果はタブで表示されます。長い値は、セルを開いて全文を見られます。
  • 出力:結果をExcelやHTMLに出力できます。
  • 保存した結果:「VeqSQLに保存…」で、結果をVeqSQLの中に保存します。左のツリーの「保存した結果」から、いつでも開いて、SQLで参照できます。
  • 実行計画:EXPLAINなどの実行計画を、専用の表示で見られます。
  • 再取得:履歴から、結果を再取得できます。

5. 比較実行

更新の前と後の結果を、並べて比べる機能です。

  1. 「比較実行」にチェックを入れます。
  2. 更新の前に、確認用のSELECTを実行します。
  3. 更新を実行して、同じタブで、もう一度、同じSELECTを実行します。
  4. 前後の差分が、色(変更・追加・削除)で表示されます。比較のために、裏でSELECTが再実行されることはありません。
  5. 差分は、Excel/HTMLに出力して、作業の記録として残せます。

比較する対象をやり直したいときは、「比較前クリア」を使います。

6. 複数DB結合

別々のデータベースのテーブルを、1つのSQLで結合できます。

  1. 結合したいDBを、すべて接続します。
  2. 「複数DB結合」にチェックを入れます。
  3. テーブルは、"接続名"."テーブル名" のように、接続名を付けて書きます。PostgreSQLは "接続名"."スキーマ名"."テーブル名"、MySQL/MariaDBは "接続名"."DB名"."テーブル名"、SQL Serverは "接続名"."DB名"."スキーマ名"."テーブル名" です。
  4. 保存した結果も、結合の対象にできます。

結合した結果を反映する

  • 「結果をDBへ反映」から、INSERT・UPDATE・DELETEを、確認画面を経て実行できます。反映先は、1回につき1つのDB・1つのテーブルです。
  • SQLに直接INSERT … SELECT、UPDATE … FROM、DELETE … USING などを書く方法もあります(UPDATE・DELETEはWHEREが必須)。
  • 反映が成功した直後は、未コミットです。内容を確認して、コミットまたはロールバックを選びます。途中で失敗した場合は、全件ロールバックされます。
  • 複数のDBにまたがる分散トランザクションには、対応していません。反映先のDBは、読み取り専用をOFFにしてください。

7. 暗号化の状態表示

画面下の状態表示に、接続中の通信の暗号化の状態が出ます。設定ではなく、実際の状態を確認して表示します。

  • 暗号化:あり(TLS・証明書検証あり):暗号化され、接続先も検証できています。
  • 暗号化:あり(TLS・接続先未検証):暗号化されていますが、接続先が本物かは確認していません。
  • 暗号化:なし(クエリ通信):通信が暗号化されていません。警告が出ます。TLSの設定を確認してください。
  • 暗号化:対象外:ファイル型のDB(SQLiteなど)で、通信が発生しません。
  • 暗号化:確認不可(ドライバー依存)/不明:ドライバーから確認できませんでした。

8. バックアップと復元

  • メニューの「作業データをバックアップ…」で、接続設定、SQLのタブ、履歴、保存した結果をファイルに書き出せます。
  • 「バックアップから復元…」で、元に戻せます。
  • 注意:バックアップのファイルは暗号化されません。SQLや保存した結果が入っているため、業務データと同じように管理してください。パスワードはOSの資格情報ストアにあり、バックアップには含まれません。

9. 困ったときは

  • SQLが終わらない/止まらない:「停止」を押します。それでも止まらないときは、「接続を強制終了」を使います。
  • 確認の画面が出ない:そのSQLは、確認の対象外かもしれません(3.の「確認の対象外」)。
  • 「対象行を完全に確認できません」と出る:対象が、設定した上限を超えています。WHERE条件で絞るか、設定の上限を上げてください。
  • 接続できない:「接続テスト」のメッセージと、TLSの設定を確認してください。サーバーが暗号化を要求している場合や、証明書の検証に失敗している場合があります。
  • それでも解決しないとき:サポートのページから、お問い合わせください。

User manual

Applies to: VeqSQL 0.1 series (Windows) · Last updated: November 24, 2026

1. Connect to a database

  1. Use "+" on the left to create a connection. Choose the database type and enter the host, user name and password.
  2. Click "Test connection", then "Save".
  3. The connection appears in the tree. Connect from there.
  • Passwords are kept in the OS credential store, not in the settings file.
  • SQLite and Access: drag a file (.db, .sqlite, .sqlite3, .db3 or an Access file) onto the window to open the registration screen. Dropping a SQL file opens it in the editor.
  • Read-only: set per connection. For SQLite, MySQL and PostgreSQL the database also refuses writes. For SQL Server, ODBC, Access and Oracle it relies mainly on the app, so also use read-only permissions on the database.
  • TLS: for PostgreSQL, MySQL/MariaDB and SQL Server you can choose the mode. "Verify CA and host name" is recommended.

2. Write and run SQL

ActionShortcut / button
New query tabCtrl+T ("+")
Open / save a SQL fileCtrl+O / Ctrl+S
Run allF5
Run the selection, or the statement at the cursorCtrl+Enter (also in the context menu)
CompletionCtrl+Space
Format SQL (selection only if selected)Ctrl+Shift+F
Stop a running statement"Stop" button
  • Parameters: write :name in SQL and set values with the "Parameters" button.
  • History and restore: search past SQL in "SQL history" and open it in a new tab. Restore an accidentally closed tab with "Restore closed tab". Recent files are listed too.
  • Encoding and line endings are shown at the bottom right. SQL files are saved with their original encoding, BOM and line endings.
  • Commit and rollback: after a write, the transaction is uncommitted. Check the result, then press "Commit" or "Rollback".

3. Review before writes

This is the heart of VeqSQL.

UPDATE and DELETE

  1. When you run the SQL, a review dialog opens showing the affected rows (and the expected result for updates).
  2. Check it, then type the row count to approve.
  3. After approval it runs. A statement or connection different from the approved one will not run.
  4. If the affected count after execution differs from the approved count, or is unknown, everything is rolled back and later statements do not run.

The dialog shows the total count and the first 50 rows. Typing the count is required even when some rows are not displayed.

DROP and TRUNCATE

Type the exact object name to approve. See "DDL support" in the menu for what is supported per database.

Row limit for review

The default is 5,000. In "Settings" → "Maximum rows to review" choose 10,000, 50,000, 100,000, custom (1–1,000,000), or unlimited. Higher limits slow the screen and use more memory and time. Even when unlimited, capacity, time and driver constraints apply. If the limit is exceeded or review cannot be completed, the statement does not run.

Not covered

Review covers UPDATE, DELETE, DROP and TRUNCATE written directly in the SQL text. Changes made inside stored procedures, dynamic SQL, MERGE, EXEC and similar cannot be reviewed in advance. For important data, take a backup and try it in a non-production environment first.

4. Working with results

  • View: results appear in tabs. Open a cell to read a long value in full.
  • Export: export results to Excel or HTML.
  • Saved results: "Save to VeqSQL…" keeps a result inside VeqSQL. Open it later from "Saved results" in the tree and query it with SQL.
  • Query plans: view EXPLAIN output in a dedicated display.
  • Re-fetch: re-run a result from history.

5. Compare runs

See the result before and after a change, side by side.

  1. Turn on "Compare".
  2. Run a check SELECT before the change.
  3. Run the change, then run the same SELECT again in the same tab.
  4. Changes, additions and deletions are colored. VeqSQL never re-runs a SELECT behind your back to compare.
  5. Export the difference to Excel or HTML as a record.

To start over, use "Clear comparison baseline".

6. Cross-database queries

Join tables from different databases in a single SQL statement.

  1. Connect to all the databases you need.
  2. Turn on "Multi-DB join".
  3. Qualify tables with the connection name: "connection"."table". PostgreSQL: "connection"."schema"."table"; MySQL/MariaDB: "connection"."database"."table"; SQL Server: "connection"."database"."schema"."table".
  4. Saved results can be joined too.

Applying joined results

  • "Apply result to DB" runs INSERT, UPDATE or DELETE through a review dialog. One database and one table per run.
  • You can also write INSERT … SELECT, UPDATE … FROM or DELETE … USING directly (UPDATE and DELETE require WHERE).
  • After success the transaction is uncommitted. Check it, then commit or roll back. If it fails midway, everything is rolled back.
  • Distributed transactions across databases are not supported. Turn read-only off on the target connection.

7. Encryption status

The status bar shows the actual encryption state of the connection, not just the setting.

  • Encrypted (TLS, certificate verified): encrypted and the server is verified.
  • Encrypted (TLS, server not verified): encrypted, but the server's identity is not checked.
  • Not encrypted (query traffic): a warning appears. Check your TLS settings.
  • Not applicable: file-based databases such as SQLite have no network traffic.
  • Cannot confirm (driver-dependent) / unknown: the driver could not report it.

8. Backup and restore

  • "Back up workspace…" in the menu exports connection settings, SQL tabs, history and saved results to a file.
  • "Restore from backup…" brings them back.
  • Note: backup files are not encrypted. They contain your SQL and saved results, so handle them like business data. Passwords stay in the OS credential store and are not in the backup.

9. Troubleshooting

  • A statement will not finish or stop: press "Stop". If that fails, use "Force-stop connection".
  • No review dialog appeared: the statement may be outside the covered kinds (see "Not covered" above).
  • "Cannot fully verify the target rows": the target exceeds your limit. Narrow the WHERE clause or raise the limit in Settings.
  • Cannot connect: check the test message and TLS settings. The server may require encryption, or certificate verification may be failing.
  • Still stuck? Contact us from the support page.