SqlOtter
← All featuresManage objects

Manage objects

Create, edit, copy and rename tables.

Review table definitions in SQL Preview, or copy and rename multiple selected tables with a live naming preview.

Current-development draft, source-reviewed on 2026-10-17 and supplemented on 2026-10-18. Four authentic owner captures illustrate a new-table pair and an existing-field MODIFY COLUMN preview / later Fields state. Document formatted is formatter feedback; execution success and a fresh metadata read are unconfirmed. Physical shortcuts, complete engine workflows and named-release verification remain pending. Batch copy/rename instructions and two owner-supplied preview images were added on 2026-11-01; engine-specific availability applies.

How it works

Show Structure is read-only; Edit table structure opens the draft editor. Create a new relational table, add a field or modify an existing definition, then check native types, defaults, identity and comments before Save Changes prepares a preview. Docs illustrates both the test.new_table_1 new-table draft / CREATE TABLE and a separate test.test_docs MODIFY COLUMN preview / later Fields state. From the object tree, select multiple tables to open a shared Copy Table or Rename Table dialog. Preview every destination name, choose common copy options, or rename with prefix/suffix and find-and-replace rules.

A quick walkthrough

  1. Confirm the workspace connection, database/Schema and selected object-tree table. Use Edit table structure, or New Table for a new relational definition.
  2. In Fields, add, copy or modify a field and review all ten definition columns. The Docs existing-table example reviews MODIFY COLUMN review_note VARCHAR(80), Comment Test for F13 and AFTER id for test.test_docs, then explains the completion and fresh-metadata checks. Existing-table reordering requires field-position support.
  3. Choose Save Changes directly. Resolve case-insensitive duplicate names and review any Confirm Field Type Exchange.
  4. Read the complete editable SQL Preview. Cancel returns from this preview; Execute submits the accepted text. Ctrl/⌘+Enter can perform either action depending on which dialog has focus.
  5. Wait for completion or inspect per-statement errors, then reopen the same target’s metadata to verify what actually changed.
  6. For batch table operations, select multiple tree tables and choose Copy Table or Rename Table. Review the names and available options together, then submit and verify each destination. See the illustrated guides below.
Complete Fields editor for test.new_table_1 with id and selected review_note VARCHAR(80), Allow Null checked, NULL default display, blank field comment and Cancel / Save Changes.
Owner capture of the Fields draft for test.new_table_1. The selected review_note row is VARCHAR(80), Allow Null is checked and Default Value shows NULL; its field Comment is blank. The id row and Table Comment “the new table3 1” remain visible with all ten definition columns, field actions and Cancel / Save Changes. The companion preview generates CREATE TABLE, so this is a new-table definition; execution and persisted metadata are not shown. Historical screenshot; UI icons have been updated.

Copy multiple tables

Duplicate selected tables with one prefix/suffix rule, a live name preview and shared options for data and related objects.

Copy Selected Items (3) with an empty prefix, _copy suffix, six checked copy options and a three-row Original name / New name preview.
Copy Selected Items (3) adds _copy to each original name. Table structure is required; data, indexes, foreign keys, triggers, and stored procedures and functions are checked in this example. Review the available options and all three destination names before OK. Historical screenshot; UI icons have been updated.
Open step-by-step guide →

Rename multiple tables

Apply a prefix/suffix rule or find-and-replace to selected table names, with a live preview and highlighted replacements.

Rename Selected Tables with Find and replace selected, test replaced by copy, and yellow original matches beside green replacements in three preview rows.
Find and replace changes every test occurrence to copy in the three selected table names. Yellow marks the original matches and green marks the replacement text. Prefix and suffix is the alternative naming mode.
Open step-by-step guide →

Default shortcuts

Main-window actions are configurable; structure-dialog, field-control and SQL Preview keys below are fixed to their own scope. The same chord can move from review to execution when focus changes.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
Show Structure (view)F6F6Main workspace, current table context; opens read-only metadata, not the Fields editor. Configurable.
Edit table structureAlt+Enter⌥+EnterMain workspace; select the intended object-tree table first. Configurable default.
Edit from the focused object treeCtrl+Enter / Alt+Enter⌘+Enter / ⌥+EnterFixed tree handler. The tree filter input uses its own opening behavior; this is not a save shortcut there.
New TableCtrl+N⌘+NMain workspace with a database selected; opens naming/settings. Configurable; the same chord adds a field inside the relational dialog.
Add FieldCtrl+N⌘+NFixed structure-dialog key; always adds a field draft in the relational Fields editor. In the main workspace the configurable Ctrl+N / ⌘+N opens New Table instead.
Copy FieldCtrl+Shift+C⌘+Shift+CFixed structure-dialog key; copies one current field into a new uniquely named draft row.
Delete FieldDeleteForward DeleteCurrent field in the relational Fields editor. A focused text editor may consume Delete as text editing; field removal remains a draft until reviewed and executed.
Add / delete on the current tabCtrl++ / Ctrl+= to add; Ctrl+- to delete⌘++ / ⌘+= to add; ⌘+- to deleteRuns that tab's add/delete action on relational Fields, Index (including MongoDB Index), Relations, Triggers, or Procedures. Other tabs or unsupported actions do nothing. The + and = forms accommodate keyboard layouts.
Move Up / Move DownNo dedicated defaultNo dedicated defaultUse Fields toolbar buttons. Existing tables need field-position support; row boundaries also disable a direction.
Copy Field From...No dedicated defaultNo dedicated defaultUse the Fields toolbar; select source definitions and resolve overwrite/skip/cancel conflicts.
Focus Search structure...Ctrl+F⌘+FFixed dialog Find key; selects search input text. Search is scoped to the active structure tab.
Start search / next matchEnterReturn / EnterSearch input focused: start a changed query, then advance within current-tab matches. Does not invoke Save Changes from this input.
Previous search matchNo dedicated defaultNo dedicated defaultUse the previous button. Shift+Enter is not established as a separate previous-match default in this handler.
Advance a field cellTabTabWith the field table handling Tab, advance to the next cell; after the last cell of the last row, add a draft field. Embedded editors/popups can consume Tab first.
Set an explicit NULL defaultBackspace in an already-empty editorBackspace (⌫) in an already-empty editorOnly Default Value text editing (and the related comment editor). Sets a definition marker, not a table-data value.
Save Changes / open reviewCtrl+Enter / Ctrl+Return⌘+Enter / ⌘+ReturnFixed structure-dialog button shortcut; requires enabled Save Changes. Runs validation/type review, then SQL Preview when commands exist. Not Ctrl+S.
Execute SQL PreviewCtrl+Enter / Ctrl+Return⌘+Enter / ⌘+ReturnSQL Preview text editor focused; activates Execute and can change the database. The same chord had only opened review in the parent.
Activate a default buttonEnterReturn / EnterOnly when a focused control does not consume it. Save Changes is the parent default; Cancel is the SQL Preview default. Prefer explicit buttons for review/execution.
Cancel local input / closeEscEscMay dismiss a popup, restore/end an edit, clear field selection or clear active focused search first; otherwise enters the dialog Cancel/Unsaved Changes flow.
Open Copy TableCtrl+Alt+Shift+C⌘+⌥+Shift+CUse the object-tree selection in the active database/Schema.
Open Rename TableF2F2 (Fn if required)Use the object-tree selection in the active database/Schema.
  • Settings → Shortcuts overrides configurable main-window defaults. It does not establish that every fixed dialog or embedded-control key is remapped. All bindings here are source-reviewed; physical-keyboard/focus acceptance remains pending.
  • On macOS ⌘ is Command and ⌥ is Option. Forward Delete is often Fn+⌫; plain ⌫ is Backspace and can set a NULL marker only in the specific empty definition editor. Function keys may need Fn.
  • There is no dedicated default for choosing a type, changing Allow Null, resolving type exchange, selecting a tab or moving a field. Use the relevant controls. Ctrl+S / ⌘+S is not the structure-save default.
  • Enter can be consumed by search, text editing or a completion popup. Click Save Changes and Execute explicitly when learning the two-stage save flow.

WHAT YOU CAN DO

The details that make everyday work easier.

2 topics. Each opens its own instructions and scope notes.

Copy and rename tables

Objects in this workflow

  • Table
  • Column
  • Schema

What to know

  • Fields edits are staged, but existing-table trigger changes and Procedures operations can apply independently. Parent Discard cannot undo an applied operation.
  • Use direct Save Changes for a review you may cancel; close-prompt Save can close despite a canceled preview or pending execution. A closed dialog or success label alone is not persistence evidence.
  • SQLite structure editing is partial and some existing-column changes rebuild/copy/drop/rename the table. Review every command and verify dependencies; do not assume a lossless rebuild.
  • MongoDB uses a separate partial Schema/Index/Options path. Sample-inferred fields are not a complete or enforced collection schema; verify actual validator/options state.
  • Snowflake table-structure editing is unsupported in the capability matrix; Redis is not applicable. A visible tab does not establish accepted support.
  • DDL permissions, server version and data/dependencies affect acceptance. SQL Preview does not guarantee atomic execution or rollback after a failed batch.
  • Batch copy and rename use their own object-tree dialogs. They can partially succeed and do not share the field editor’s Save Changes / SQL Preview flow. Available copy options and naming support depend on the engine.

Try it now

Put database work back into one focused workspace.

Start a Personal trial ↗