Create and edit table structure
Create and edit table definitions with SQL Preview, or use the task guides to copy and rename multiple selected tables with a live naming preview.
When to use this
The structure editor prepares new relational tables and supported changes to existing fields, comments, indexes and related properties. Fields edits are staged for review; Show Structure is a separate read-only view. Other embedded tools can apply their own actions. Copy Table and Rename Table are separate actions from the object tree. Their task guides cover shared batch naming, copy options and highlighted find-and-replace previews.
Use it to add a nullable field, review native types/defaults/identity, or plan a supported table-definition change. Use table-data guides for editing records and the related object guides for indexes, triggers and routines. To duplicate or rename several tables together, choose Copy multiple tables or Rename multiple tables in this module’s task directory.
Before you start
Connect to the intended database, check Schema where applicable, and select the target object-tree table before editing. Reading metadata and applying DDL require the corresponding permissions. Follow the example in a disposable demo target with a recovery copy; verify engine support and existing data/dependencies before consequential changes.
Steps
- Select the correct database/Schema and tree table, then use Edit table structure; use New Table and its name/settings dialog for a new relational table. F6 only opens Show Structure.
- Wait for metadata loading. In Fields add review_note with a native type, then inspect all auto-filled values, nullability, default, key/identity and comments.
- Finish cell editing and choose Save Changes directly. Resolve duplicate names and any Confirm Field Type Exchange before reading the generated SQL Preview.
- Check the complete target and command list. Cancel returns from a directly opened preview; Execute submits the accepted editable text and may change the database.
- Wait for success or inspect per-statement failure results. Reload the same target’s structure and verify the intended field and dependencies before calling the change complete.
How to verify the result
After accepted commands finish successfully, the editor closes, the table can refresh and status can report Table structure updated successfully. Reopening the target metadata should confirm the intended definition. A closed/no-command save, source review or a screenshot alone does not verify a persisted change, data integrity or release availability.
Troubleshooting
- Save Changes disabled: finish the active edit and check that a change is detected. Enabled does not mean valid: duplicate names are blocked during save, and type/DDL acceptance still needs review.
- Duplicate Fields: rename or remove every case-insensitive duplicate. Copy Field From... has its own Yes overwrite / No skip / Cancel choice.
- No search match: confirm the active top-level/nested tab and try the field name or comment. Fields Type, Key and Extra are excluded; the count describes targets rather than rows.
- Move Up/Down disabled: check row boundaries and existing-table field-position support. A data-grid column layout is a different operation.
- Type exchange or unexpected SQL: cancel the preview, recheck native type/length, Allow Null, Default Value, Key/Extra, comments and auto-fill. A SQLite rebuild needs review of its whole copy/drop/rename sequence.
- Execution error or dialog closed unexpectedly: inspect available statement results and reload actual metadata before retrying. Use direct Save Changes for review; do not rely on close-prompt Save to retain a canceled draft.
Limits
- This current-development draft was source-reviewed on 2026-10-17, supplemented on 2026-10-18, and its tab-scoped add/delete shortcuts were rechecked against desktop source on 2026-10-27. Eleven walkthroughs use seven owner captures: four table-structure captures plus reused Index, Procedures and new-table Trigger images. Execution success, a confirmed fresh metadata read, physical shortcuts, complete live workflows and named-release acceptance remain pending.
- Field definitions are not record edits. Deleting a field, narrowing a type, changing defaults/nullability/identity or rebuilding a table can affect data and dependencies; SQL Preview is not a recovery guarantee.
- Save Changes does not govern every embedded action. Existing-table trigger changes and Procedures operations can apply independently, and parent Discard cannot undo them.
- A failed DDL batch is not guaranteed to roll back across engines. Inspect statement results and actual server state before retrying.
- SQLite and MongoDB structure editing are partial; Snowflake is unsupported for this capability and Redis is not applicable. Tab visibility does not override those support boundaries.
- MongoDB sampled schema, comment metadata, indexes and actual collection validators/options are different concepts. New Collection does not follow the relational seeded-ID flow.
- Batch copy and rename are separate workflows with their own engine support and options; the structure-editor limits above do not define their availability. The two supplied naming previews show setup before OK, not completed operations.
Specific tasks
Copy multiple selected tables
Select several tables, preview their new names together, and choose the copy options once for the whole batch.
Use the intended connection, database and Schema. Select actual table items and ensure you can read the sources and create the destination objects.
Object tree → select two or more tables → Table → Copy Table, or right-click the selection → Copy Table
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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.
- 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.
Rename multiple selected tables
Use one naming rule to rename selected tables, and compare all original and new names before submitting.
Check the connection, database and Schema, select the intended tables and confirm rename permissions and application dependencies.
Object tree → select two or more tables → Table → Rename Table, or right-click the selection → Rename Table
- Select two or more table items in the object tree and choose Rename Table. Rename Selected Tables lists the original names alongside the generated new names.
- Choose Prefix and suffix to add text before or after each original name, or choose Find and replace to replace text within the names. Only one naming mode is active at a time.
- For the pictured example, select Find and replace, enter test in Find and copy in Replace with. Matching is literal and case-sensitive; every occurrence is replaced, including repeated matches in the same name.
- Check every Original name / New name pair. Yellow highlights the original matches and green highlights the replacement text. For example, new_table7_test1_test3_test1 becomes new_table7_copy1_copy3_copy1.
- Resolve empty or duplicate destination names and existing-object conflicts. At least one name must change; unchanged tables are skipped. Click OK to submit the changed pairs, review any further confirmation, or choose Cancel to abandon the setup.
- Review the result and any failed pair, refresh the same database/Schema and verify the names. Check affected queries and application references before continuing work.
Successfully renamed tables appear under their new names. A table whose generated name is unchanged is left as it is. Rename changes the existing object’s name rather than creating a copied table.
- Find and replace uses plain text, not regular expressions. Leaving Find empty makes no replacement; an empty replacement removes matching text if the remaining names are valid.
- The read-only preview updates from the naming controls. Leading/trailing whitespace is trimmed, and an applicable force-uppercase setting can change the resulting names.
- Existing target names are checked before execution. Engine naming rules and permissions still apply; the preview is not a guarantee that the server will accept every name.
- Renames run in sequence and can partially succeed. Inspect completed and failed pairs before retrying; there is no guaranteed whole-batch undo or automatic repair of external application references.