SqlOtter

Create and edit table structure / Copy and rename tables

Copy multiple selected tables

Select several tables, preview their new names together, and choose the copy options once for the whole batch.

Where to open it

Object tree → select two or more tables → Table → Copy Table, or right-click the selection → Copy Table

Shortcuts and controls

The existing table action opens the batch dialog when two or more tables are selected in the object tree.

Shortcuts and controls
ActionWindows / LinuxmacOSFocus and effect
Open Copy TableCtrl+Alt+Shift+C⌘+⌥+Shift+CUse the object-tree selection in the active database/Schema.
Review naming and optionsDialog controlsDialog controlsEdit prefix/suffix and the shared copy options; the name preview updates live.
Submit / cancelOK / CancelOK / CancelOK validates destinations and starts the operation, subject to any further confirmation. Cancel closes the setup without submitting it.
  • Settings → Shortcuts can override the main-window defaults. There is no separate default shortcut for the batch naming rules.

Before you start

Use the intended connection, database and Schema. Select actual table items and ensure you can read the sources and create the destination objects.

Follow these steps

  1. Select two or more tables in the object tree and choose Copy Table. Copy Selected Items shows the selected count; confirm every source in the Original name column.
  2. Enter a Prefix, a Suffix, or both. The batch dialog starts with _copy as the suffix and generates prefix + original table name + suffix for every selected table.
  3. Review Copy Options. Copy table structure is required. Choose whether to copy table data, indexes, foreign keys, triggers, and stored procedures and functions where available. The same choices apply to every selected table.
  4. Compare every Original name / New name pair. For example, new_table7_test1_test3_test1 becomes new_table7_test1_test3_test1_copy. Resolve empty, duplicate or unchanged destination names and any existing-name conflicts.
  5. Choose OK for the intended batch, or Cancel to leave the setup. OK checks destinations and starts copying; it does not open the structure editor’s Save Changes / SQL Preview flow.
  6. Review progress and any errors, then refresh the target tree and check each new table, its structure, the selected data scope and any requested 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.

Example

With an empty prefix and suffix _copy: new_table7_test1_test3_test1 → new_table7_test1_test3_test1_copy; new_table7_test1_test6_test1 → new_table7_test1_test6_test1_copy; new_table7_test1_test4 → new_table7_test1_test4_copy.

What to expect

Each successfully copied table appears under its previewed new name in the same database/Schema. The original tables remain available. Verify the destination contents and definitions after completion.

Scope and limits

  • The preview lists generated names and is read-only; change the naming rule to update it. Every copied item needs a new, nonempty, unique destination name.
  • Copy options and related-object coverage depend on the engine, permissions and definitions. A checked option does not guarantee that all dependencies, grants or routines can be duplicated.
  • Copies run one table at a time. An error or cancellation can leave completed or partial destinations; inspect them before retrying. This operation does not promise a consistent backup or an automatic rollback of the whole batch.

If something goes wrong

  • OK disabled: add or adjust a prefix/suffix so every generated name changes and the destination names are nonempty and unique.
  • Destination already exists: choose another naming rule and reopen the operation if the source database or Schema changed.
  • Missing data or related objects: check the chosen options, engine support, permissions and reported errors; verify the actual new tables before retrying.