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

GridWhat you can do
SQL resultsSelect, copy, sort and export (no editing)
Table dataAll of the above, plus entering and pasting values, adding and deleting rows (Editing data) and filtering

Selecting

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.

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).

NULL vs. empty stringCells cleared with Delete become NULL. Clearing the input of a numeric, date or similar column also gives NULL. Clearing the input of a text column gives an empty string ('').

Keyboard reference

Key / actionEffect
↑↓←→Move between cells (with Ctrl to the edge, with Shift to extend the selection)
PageUp / PageDown, Home / EndMove one screen / to the start or end of the row (with Ctrl to the first or last cell of the grid)
Enter / Shift+EnterConfirm and move down / up
Tab / Shift+TabConfirm and move right / left (wraps to the next row at the end of a row)
F2, double-clickAppend to the current value
EscCancel the input (and clear the dashed copy outline)
Delete / BackspaceSet the selected cells to NULL / clear the cell and start typing
Ctrl+C / X / VCopy / Cut / Paste
Ctrl+Shift+CCopy with headers
Ctrl+Z / Ctrl+YUndo / Redo (input, pastes and clears not yet applied)
Ctrl+DCopy 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)
WhereItems
CellCopy, 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
HeaderSort 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".

OptionChoices
FormatCSV, TSV, Excel (.xlsx), JSON, INSERT statements, Markdown table, HTML table
DestinationFile or clipboard (Excel: file only)
RangeAll 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".
OtherTable name for INSERT statements, Use logical names in the header, Include header row, NULL as, Encoding (UTF-8 with BOM, UTF-8, Shift_JIS)
CSV files for ExcelChoose the encoding "UTF-8 (with BOM, for Excel)" so that Excel opens the file without garbled characters.

Readability

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.

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

← Musubi SQL website (download)