Skip to content

Use TableAI from the keyboard

Shortcuts follow the active window and focused control. Select the SQL editor for text commands or the results grid for cell commands.

  1. Open a connection with SQL ready in the editor.
  2. Click the editor to give it focus.
  3. Place the cursor in a statement, or select the SQL you want to run.
  4. Press ⌘R.
  5. Click the returned grid to begin cell navigation.

The SQL workflow explains how the run target changes with the cursor and selection.

Task Shortcut
Run the current statement or selection ⌘R
Run the complete script when multiple statements are present ⌘⌥R
Format SQL ⌘⌥F
Toggle a line comment ⌘/
Duplicate a line ⌘D
Cancel a running query ⌘.
Open the query in a new tab ⌘⇧R
Save a reusable query ⌘⇧S
Open Query History ⌘⇧H
Task Shortcut
Move between cells Arrow keys, Tab or Shift+Tab
Extend a selection Shift+Arrow
Jump to a grid boundary ⌘+Arrow
Select the active row Shift+Space
Copy selected cells ⌘C
Start editing a cell Return
Cancel a cell edit Esc
Undo a staged change ⌘Z
Redo a staged change ⌘⇧Z
Apply staged changes ⌘S

While you edit text inside a cell, navigation and text shortcuts act in that editor. Finish or cancel the cell edit before moving through the grid. For the review steps before Apply, see edit data safely.

Task Shortcut
Previous tab ⌘⌥←
Next tab ⌘⌥→
Select a tab by position ⌘+1 through 9
Close the active tab ⌘W
Reopen the last closed tab ⌘⇧T

Check the Query menu for the current command label and availability. Save Query stores SQL for reuse; Apply submits staged database changes.