Toolbar & Execution

Learn about Toolbar buttons and shortcuts for executing, formatting, and saving SQL.

EXECUTE — Run Current Statement or Selection

Ctrl+Enter (macOS: Cmd+Enter)

EXECUTE — Run Current Statement or Selection

Executes the single SQL statement at the cursor position. If text is selected, only the selected area is executed.

SituationExecution Target
No text selectedSingle SQL statement at cursor position (auto-split by semicolons)
Text selectedEntire selected text

The target SQL statement is marked with a green preview border in the editor, so you can verify which statement will be executed.

TIP

To execute a specific statement among multiple SQL statements, place your cursor inside that statement and press Ctrl+Enter.

RUN SCRIPT — Execute Entire Script Sequentially

Ctrl+Shift+Enter (macOS: Cmd+Shift+Enter)

RUN SCRIPT — Execute Entire Script Sequentially

Splits all SQL statements in the editor by semicolons (;) and executes them sequentially. Each statement's result is shown in a separate result tab.

  • SELECT → Result grid tab
  • DML/DDL → Affected row count or success message
  • On error → Stops at that statement and displays the error

CANCEL — Stop Running Query

Esc

CANCEL — Stop Running Query

Forcefully stops the currently running query. Useful for long-running queries. Use the CANCEL button in the Toolbar or press Esc.

CANCEL sends a cancellation request to the server, so there may be a slight delay before the query actually stops depending on the DB server.

PLAN — EXPLAIN Analysis

Ctrl+Shift+E (macOS: Cmd+Shift+E)

PLAN — EXPLAIN Analysis

Retrieves the execution plan for the SQL statement at the cursor position. A separate Explain tab is created in the result area showing the plan in tree format.

For more details on EXPLAIN analysis, see the EXPLAIN PLAN Analysis section.

FORMAT — SQL Formatting

Ctrl+Shift+F (macOS: Cmd+Shift+F)

FORMAT — SQL Formatting

Auto-formats SQL for readability. Choose from two options in the FORMAT dropdown in the Toolbar:

OptionDescription
Format StatementFormats only the single SQL statement at the cursor position.
Format AllFormats the entire SQL in the editor.

Formatting rules:

  • Keywords are converted to uppercase (e.g., selectSELECT)
  • Line breaks are applied per clause
  • Formatting follows the syntax of the connected DBMS (MySQL, PostgreSQL, Oracle, SQL Server, etc.)

Save — Save Query

Ctrl+S (macOS: Cmd+S)

Saves the current SQL content in the editor. Saved SQL can be reopened anytime from the left SQL list panel.

TIP

SQL content is auto-saved even when you close a tab or navigate away, so reopening restores your previous work.