Help home > Working with Grids
Working with Grids
SQL results and table data are shown in grids that work like Excel. You can also copy and paste to and from Excel.
What you can do
| Grid | What you can do |
|---|---|
| SQL results | Select, copy, sort and export (no editing) |
| Table data | All of the above, plus entering and pasting values, adding and deleting rows (Editing data) and filtering |
Selecting
- Cells: click. Drag or Shift+click to select a range.
- Rows: click the row number on the left (drag for multiple rows).
- Columns: click the header (Shift+click for multiple columns).
- Everything: click the top-left corner, or press Ctrl+A.
When two or more cells are selected, the status bar at the bottom shows the count, sum, average, min and max (as in Excel). Sums and the like use numeric cells only; NULL and empty cells are not counted. If any selected cell is not numeric, the "Numbers" count is also shown.
Copy and paste
Ctrl+C copies the selection as tab-separated text (you can paste it straight into Excel). The copied range is outlined with a dashed line. Ctrl+Shift+C copies it with the headers.
In a table data grid, Ctrl+V pastes with the selected cell as the top-left corner. Ranges copied from Excel paste as is.
- If the selected range is a multiple of the copied size, the copied data is repeated to fill the range (this also works for pasting a single value into a range).
- Data that extends past the bottom of the grid is pasted into newly added rows.
Entering data (editing)
In a table data grid, select a cell and start typing to overwrite its value. F2 or a double-click appends to the current value. Enter confirms and moves down; Tab moves right. Esc cancels the input.
Changed cells are shown in yellow, added rows in green, and rows to be deleted in red with a strikethrough. Nothing is written to the database until you press Apply (Editing data).
Keyboard reference
| Key / action | Effect |
|---|---|
| ↑↓←→ | Move between cells (with Ctrl to the edge, with Shift to extend the selection) |
| PageUp / PageDown, Home / End | Move one screen / to the start or end of the row (with Ctrl to the first or last cell of the grid) |
| Enter / Shift+Enter | Confirm and move down / up |
| Tab / Shift+Tab | Confirm and move right / left (wraps to the next row at the end of a row) |
| F2, double-click | Append to the current value |
| Esc | Cancel the input (and clear the dashed copy outline) |
| Delete / Backspace | Set the selected cells to NULL / clear the cell and start typing |
| Ctrl+C / X / V | Copy / Cut / Paste |
| Ctrl+Shift+C | Copy with headers |
| Ctrl+Z / Ctrl+Y | Undo / Redo (input, pastes and clears not yet applied) |
| Ctrl+D | Copy the values of the first row of the selection down to the rows below |
| Ctrl+Enter (while typing) | Enter the value being typed into every cell in the selection |
| Ctrl+Shift++ / Ctrl+- | Insert a row below / delete rows (or undo the deletion) |
Context menus
| Where | Items |
|---|---|
| Cell | Copy, Copy with Headers, (data grids only) Cut, Paste, Set to NULL, insert, duplicate and delete rows, Filter by "…", Exclude "…", copy the selection as CSV, JSON, INSERT statements or a Markdown table, and Export |
| Header | Sort Ascending, Sort Descending, Clear Sort, Fit Column Width to Contents, Copy Column Name |
Sorting only affects the display (the order in the database does not change). You cannot insert rows while the grid is sorted.
Export
Open it with Export... at the bottom right of the grid, or right-click → "Export".
| Option | Choices |
|---|---|
| Format | CSV, TSV, Excel (.xlsx), JSON, INSERT statements, Markdown table, HTML table |
| Destination | File or clipboard (Excel: file only) |
| Range | All rows or the selection. If the result was truncated at the maximum row count, you can also choose "Fetch all rows again and export them". |
| Other | Table name for INSERT statements, Use logical names in the header, Include header row, NULL as, Encoding (UTF-8 with BOM, UTF-8, Shift_JIS) |
Readability
- Column width: drag the right edge of the header. Double-click to fit the contents (double-click again for the standard width).
- Alternate row shading: turn it on or off with "Shade every other row in data grids" in Settings.
- Headers: follow the display names (logical, physical or both). Hover over a header to see the physical name, logical name and type.
- NULL: shown as "NULL" in gray italics.
Record view
Record View at the top right of the grid shows the selected row vertically as "column = value" pairs. Press it again to return to the grid.
- Use it to read tables with many columns one row at a time, or values with long text or line breaks. Values are shown in full, and JSON is pretty-printed.
- ← / → move to the previous / next row, and Home / End to the first / last row. "Copy value" next to a value copies it.
- Values cannot be edited in record view. Return to the grid to edit.
FAQ
Some pasted values do not go in
SQL result grids and view data cannot be edited. Even in table data, rows marked for deletion cannot be edited.
Undo does not revert my change
Changes cannot be undone after you Apply them. Before applying, Revert discards all changes.
▲ Back to top