Table Editing
Table editing basically offers an editing experience similar to Excel.
Editing mode starts with Enter, or by double-clicking a cell.

Adding Columns
Created using the shortcut Alt + Enter (Windows/Linux) or ⌥ + Enter (Mac).
A column is added to every selected table.
Tab Key
Press Tab to move straight into the next cell's editing mode.
Pressing Tab in the last cell creates a new column.
Use Shift + Tab to navigate to the previous cell's editing mode.

DataType Autocomplete
Start editing a DataType cell and type. Matching types from the selected database are suggested, and the part of a suggestion that literally contains what you typed is highlighted.
The match itself is fuzzy, so vch also finds VARCHAR.
Arrow UporArrow Down: move through the suggestionsArrow Right,TaborEnter: accept the highlighted suggestionArrow Left: go back to the text you typed
You can also click a suggestion.
The list shows up to ten suggestions at a time and scrolls for the rest.
Nothing is forced, so a type that is not in the list can be typed freely, including arguments such as VARCHAR(255). The list closes once what you type runs past a whole type name, as VARCHAR(255) or BIGINT UNSIGNED does.
The suggestions follow the selected database. Changing the database changes what is offered and leaves existing columns as they are.

Not Null, Unique, Auto Increment
These three cells are toggles rather than text.
Double-click one, or press Enter while it is focused, to flip it.
The Not Null cell reads N-N when it is set and NULL when it is not.
UQ and AI are dimmed when off and highlighted when on.

Cells hidden by the table view options cannot be toggled.
Selecting Multiple Columns
Supports five methods:
Shift + Arrow Up/Down: extend the selection one row at a timeCtrl + click(Windows/Linux) or⌘ + click(Mac): add a single columnShift + click: select the range from the last focused columnCtrl + Shift + click(Windows/Linux) or⌘ + Shift + click(Mac): add that range to the selectionAlt + A(Windows/Linux) or⌥ + A(Mac): Select All

Rearranging and Moving Columns
Functions when dragging, enabling movement to other tables.
The dragged rows follow the pointer, and the rows around the drop point slide aside to make room.
Drop just below a table's last row to move the column to the end of that table. A table with no columns takes the drop anywhere on it.

Supports moving multiple columns with Ctrl + drag (Windows/Linux) or ⌘ + drag (Mac).

Column Deletion
Deletes the currently selected column.
Shortcut: Alt + Backspace or Alt + Delete (Windows/Linux), ⌥ + ⌫ or ⌥ + Delete (Mac)

Copying/Pasting Columns
Operates like a table-based clipboard.
Shortcuts: Ctrl + C (Windows/Linux) or ⌘ + C (Mac), Ctrl + V (Windows/Linux) or ⌘ + V (Mac)
Copying out to a spreadsheet, pasting in from one, and pasting into the table whose column cell is focused use the cells the tables show, in the order they show them — see Table View Options and Adjusting Column Order.
Columns copied in the editor and pasted with a table header selected, or into the other selected tables, carry every cell of the copied columns, including hidden ones such as Unique and Auto Increment.
You can paste from the editor into Excel and from Excel back into the editor.
Spreadsheet columns are matched to those cells by position, not by name, so the sheet's columns must follow the order of the visible cells.
For the columns below, any of these values is read as true (case insensitive):
- AutoIncrement:
TRUE,1,YES,Y - Unique:
TRUE,1,YES,Y - Not Null:
TRUE,1,YES,Y,NOT NULL
On the way out the editor writes TRUE or FALSE for AutoIncrement and Unique, and NOT NULL or NULL for Not Null.
Unique and Auto Increment are hidden by default, so TRUE and FALSE are written and read only once those cells are shown.


Where a paste lands depends on the focus:
- With a table header selected, the pasted rows are added as new columns to every selected table.
- With a column cell focused, that table's selected rows, and then the rows below the last of them, are overwritten in order, as many as were pasted. Rows between separate selections are skipped. An overwritten row takes the pasted values in its visible cells and keeps its hidden ones, and the rows left over are added as new columns. Every other selected table gets the pasted rows added as new columns.

Copying/Pasting Tables and Memos
When no column is selected inside a focused table, the same shortcuts copy the selected tables and memos themselves — see Table-related Functions.
Column Primary Key
Toggles the primary key on the focused column, which is the column the focused cell belongs to, not the whole column selection.
Use the table context menu or the shortcut Alt + K (Windows/Linux) or ⌥ + K (Mac).
The key icon in the row is display only, so clicking it does not set the key.
