Running a query
1
Select a database
Use the Select connection dropdown in the toolbar to choose which connection to query.
2
Write your SQL
Type your query in the editor. The editor supports syntax highlighting and autocomplete for your table and column names.
3
Execute
Click Run or press
Ctrl+Enter (Cmd+Enter on Mac).- Row count — Total number of rows returned
- Execution time — How long the query took in milliseconds
- Data table — Scrollable table with your results
Limits
The SQL editor is read-only and uses the same safety rules as the AI:- Only
SELECT,WITH, andEXPLAINstatements run, one per query. Statements that write or change data are rejected, and so are system tables such aspg_*andinformation_schema. - A few keywords are rejected wherever they appear outside quoted strings, including
REPLACE,TRUNCATE,MERGE,INTO, andCURRENT_USER. That rules out functions such asREPLACE(). - Results are capped at 10,000 rows. A larger
LIMIT(orTOPon SQL Server) is lowered to 10,000. - Queries time out after 30 seconds on PostgreSQL, MySQL, and MariaDB. SQL Server has no execution timeout.
Saving queries
Click Save in the toolbar to save the current query for later use. If you loaded a saved query, Save updates it instead of creating a copy (the dialog reads Update Saved Query). After switching to a different connection, it saves a new query.
Saved queries are personal — only you can see them — and each one is tied to the database connection it was written for.
Saved queries sidebar
Click Show Saved in the toolbar to open the Saved Queries sidebar (Hide Saved closes it). It lists the saved queries for the selected connection. Each entry shows:- Query name and description
- How many times it’s been run
- When it was last run