Write & reuse SQL
Pin and compare query results
Pin loaded rows in the editor, compare snapshots, draw a small chart, or return to the source SQL.
What this feature does
Save a snapshot while the editor is open, run another query, then review a comparison or chart.
When to use it
Use this for a short comparison between result sets while the SQL editor session remains open.
Before you start
Keep the SQL editor open; pinned snapshots are temporary editor-session data.
Default shortcuts
Result selection determines copy scope; pinning and comparison use result controls.
| Action | Windows / Linux | macOS | Focus and effect |
|---|---|---|---|
| Pin, unpin, and compare results | No dedicated default | No dedicated default | Use the result-panel buttons or menus; these actions have no common dedicated default. |
| Copy the current selection | Ctrl+C | ⌘+C | Behavior depends on focus, selection, and view. Use the explicit cell menu when choosing raw versus displayed values. |
| Copy selected rows as JSON | Ctrl+Shift+C | ⌘+Shift+C | Focus the table and select rows; visible columns and loaded content affect the output. |
| Inspect execution records for results | Ctrl+Shift+H | ⌘+Shift+H | Locate the record in query execution history; pinning a result does not rerun the query. |
- Settings → Shortcuts shows configurable bindings; customized keys take precedence. Fixed dialog keys and mouse gestures may be managed by their own controls.
- On macOS, ⌘ means Command and ⌥ means Option. Function keys may require Fn. Delete means forward delete (often Fn+⌫ on a compact Mac keyboard); use the menu when Insert is unavailable.
How to use it
- Run the query and keep its SQL editor open.
- Pin the loaded result in the result panel.
- Run a second query, then compare snapshots or chart a numeric column.
- Use Go to SQL source to return to the query behind a result.
What to expect
The editor can display a temporary comparison or chart for loaded result rows.
Limits and safety
- Snapshots are temporary; each editor keeps up to 20 snapshots of 5,000 loaded rows.
- Charts sample up to 250 points; comparison is not primary-key reconciliation.
If something goes wrong
- If the comparison is empty, confirm that a snapshot was pinned and that both result sets expose compatible columns.
- If a chart omits values, check the selected numeric column and whether the result has loaded the rows you expect.