Help › Work with results

Copy results

Copy cells from a result as plain text, with headers, or as CSV, JSON, SQL INSERT statements or a Markdown table.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

Select cells in the results grid and copy them in the form you need. To write a whole result to a file, see Export results to a file.

Copy the selection

Select the cells (see Select cells), then press ⌘C on macOS or Ctrl+C on Windows and Linux or choose Copy in the bar above the grid.

  • One cell is copied as its value, exactly as stored and without quotes.
  • Several cells are copied as tab-separated text, one row per line, which pastes into the cells of a spreadsheet. NULL is copied as nothing.

Copy in another form

The commands are in the Edit menu and in the right-click menu of a cell:

CommandYou get
Edit › Copy with Headers (⇧⌘C on macOS or Ctrl+Shift+C on Windows and Linux)Tab-separated text with the column names in the first line
Edit › Copy as CSVComma-separated values with a header line
Edit › Copy as JSONA JSON array with one object per row
Edit › Copy as SQL INSERTOne INSERT statement per row
Edit › Copy as Markdown TableA Markdown table

A message at the bottom of the window says how much was copied.

As JSON

Each row is an object with the column names as its keys. Numbers stay numbers, exact decimals keep every digit, and NULL is null:

[
  {"id": 1, "name": "Ada", "city": "London"},
  {"id": 2, "name": "Grace", "city": null}
]

As SQL INSERT

The statements are written for the tab's database: its quoting for names and text, and its way of writing dates and binary values. When the result comes from one table, the statements name that table; otherwise they name a placeholder table that you replace.

Limits

  • Copying takes loaded rows only, and at most 100,000 rows at a time. When more are selected, the first 100,000 are copied and a message says so. For more, export.
  • Copies use the values as they were fetched. A cell you edited but have not applied is copied with its old value.
  • A masked column is copied masked, as ••••••••, in every form, also after you showed its values on screen.

Help for Querlyn 0.1.0. All help topics