SqlOtter

Browse and edit table data / Copy and continue

Copy a value or an INSERT statement

Choose the copy action that matches the data representation you need.

Where to open it

Right-click a cell or selected records → Copy Cell Value, Copy Cell Display Value, or Copy INSERT Statement.

Default shortcuts

General copying, JSON row copying, and INSERT-text copying have distinct scopes and do not write to the database.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
Copy the current selectionCtrl+C⌘+CBehavior depends on focus, selection, and view. Use the explicit cell menu when choosing raw versus displayed values.
Copy selected rows as JSONCtrl+Shift+C⌘+Shift+CFocus the table and select rows; visible columns and loaded content affect the output.
Copy selected rows as INSERT statementsAlt+C⌥+CFocus the grid and select records; generate clipboard text without executing SQL.
Explicitly copy a raw or displayed valueNo dedicated defaultNo dedicated defaultChoose Copy Cell Value / Copy Cell Display Value in the cell menu; displayed-value copying has no separate default.
  • 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.

Before you start

Use a connection with read permission. Keep the intended database and table selected; available actions depend on the engine and field metadata.

Follow these steps

  1. Select the intended cell or records and open the context menu.
  2. Choose Copy Cell Value for the ordinary cell value, or Copy Cell Display Value for a converted display value.
  3. For supported records, choose Copy INSERT Statement to obtain SQL text.
  4. Paste into a local editor and inspect columns, values, NULL handling, and target dialect before reusing the text.

Choose the representation to copy

The cell context menu separates the ordinary cell value, the converted display value, and the selected-row INSERT text.

SqlOtter new_table grid with rows id 20, 18, and 16 selected and the context menu showing Copy INSERT Statement with Alt+C, Copy Cell Value with Command+C, and Copy Cell Display Value.
The new_table menu shows the three copy paths together. Rows id 20, 18, and 16 are selected; Copy INSERT Statement shows Alt+C on macOS, Copy Cell Value shows Command+C, and Copy Cell Display Value has no separate visible shortcut. Historical screenshot; UI icons have been updated.
  1. Select the cell or rows and open the grid context menu. The supplied capture has rows with id 20, 18, and 16 selected in new_table.
  2. Choose Copy Cell Value for the cell's ordinary value. Its default menu binding is Ctrl+C on Windows/Linux and ⌘C on macOS.
  3. Choose Copy Cell Display Value when the cell has a converted display representation. This command has no separate default shortcut; use the menu so the intended representation is explicit.
  4. Choose Copy INSERT Statement for the selected rows. The menu shows Alt+C on Windows/Linux and ⌥C on macOS.
  • The screenshot proves the menu labels, selected rows, and visible macOS bindings; it does not prove the clipboard contents after activation.
  • Copy Cell Display Value falls back to the ordinary cell value when no display-value role is available.

Inspect the generated INSERT text

Copy INSERT Statement generates text for the selected loaded rows; inspect it before deciding whether to run it elsewhere.

SqlOtter SQL Editor showing an INSERT INTO d1.new_table statement with id, new_column, and remark columns and three VALUES rows for ids 20, 18, and 16.
The SQL Editor shows the generated text for d1.new_table: visible columns id, new_column, and remark, followed by rows 20 / Test 6 / Remark 6, 18 / Test 2 / Remark 2, and 16 / Test 3 / Remark 3. The image is editor text, not execution feedback. Historical screenshot; UI icons have been updated.
  1. Select the intended loaded rows and choose Copy INSERT Statement, or use Alt+C / ⌥C with the grid focused.
  2. Paste the clipboard into a local editor. The supplied example contains visible columns id, new_column, and remark for d1.new_table, with rows 20 / Test 6 / Remark 6, 18 / Test 2 / Remark 2, and 16 / Test 3 / Remark 3.
  3. Check the qualified table name, visible column order, quoting, NULL markers, escaped quotes, generated or unique keys, and the target engine dialect before execution.
  4. Run the SQL only after reviewing it in the intended database context; copying itself does not submit or execute the statement.
  • The supplied editor capture shows generated SQL text only. It does not establish that the statement was executed or that any row was inserted.
  • The builder reads visible grid cell text and emits one VALUES group per selected row. Hidden columns and unloaded pages are outside this captured output.

What to expect

The selected representation is placed on the clipboard; copying an INSERT statement does not execute it.

Scope and limits

  • Copied grid text can contain shortened display values. Inspect full or binary fields when fidelity matters.
  • Review identity, uniqueness, and engine syntax before executing copied SQL elsewhere.

If something goes wrong

  • If an action is unavailable, check the selected object and supported source. Review the output scope before relying on copied or exported data.