TablePlus Documentation
  • Overview
  • Getting Started
  • GUI Tools
    • The Interface
      • Quick Look
      • Menu
      • Toolbar
      • Left sidebar
      • Right sidebar
      • Console Log
      • Query Editor
      • Multi Tabs / Workspaces / Windows
    • Open Anything
    • Code Review & Safemode
      • Code Preview
      • Commit changes
      • Discard changes
      • Safe mode
    • Connections & Command Line (CLI)
    • Database
    • Working with Table
      • Table Basics
      • Row
      • Column
      • Constraint
      • Index
      • Trigger
    • Filter
    • Database Objects
      • Function
      • Procedure
      • View
    • Import & Export
    • Backup & Restore
    • User Management
    • Metrics board
  • Query Editor
    • Editor Basics
    • Multiple Carets
    • Query Favorite & Keyword Binding
    • Query History
    • Streaming Results & Async Loading
    • Autocomplete
    • Split Panes
    • Split Results into Tabs
    • Working With Query Results
    • Format query (beautify/minify/uglify)
    • Query Parameters
    • Customize Query Editor
  • Preferences
    • General
      • Application
      • Table Data
      • SQL Editor
      • CSV File
      • Connections
    • Fonts & Colors
    • Crash & Security
    • Keymap
  • Utilities
    • Plugin
    • DBngin
    • Shortcut Keys
    • Licensing
    • Troubleshooting
Powered by GitBook
On this page
  • Open SQL Query Editor
  • Execute queries
  • Cancel Queries
  • Export queries

Was this helpful?

  1. Query Editor

Editor Basics

PreviousMetrics boardNextMultiple Carets

Last updated 5 years ago

Was this helpful?

Open SQL Query Editor

To open the query editor, click on the query editor button on top of the left panel, or use the shortcut key ⌘ + Return, or ⌘ + E.

Execute queries

To execute a query from the Query Editor, select the query and click on the Run Current button, or use shortcut key ⌘ + Return.

TablePlus also supports writing and executing multiple queries, you’ll need to separate them with a semicolon.

To execute multiple queries, select them in the Query Editor and click on the dropdown next to Run Current button, choose Run All, or use the shortcut key ⌘ + ⇧ + Return.

You can change the default Execute button from Run Current to Run All from the same dropdown.

Cancel Queries

When executing a long running queries and you need to stop it midway through, you can do it via the process list:

  • Click Cancel button on the Query Editor

  • Or navigate to menu Connection > Process List...

  • Or use the shortcut keys ⌘ + .

From the Process List, you can see all the running queries, select the query and click Kill to cancel it.

Export queries

To export a queries from the Query Editor, click on the dropdown menu next the the Run button and choose Save SQL as...