IntelliJ IDEA 2021.1 Help

Create table and modify table dialogs

To modify a table, right-click the table name in the Database tool window (View | Tool Windows | Database) and select Modify Table. Alternatively, click the table name and press Ctrl+F6.

To create a table, right-click a schema name in the Database tool window (View | Tool Windows | Database) and navigate to New | Table.

Modify and create a table  dialogs

Upper part: GUI

The upper part of the dialog you can define a table structure, associated constraints, and indexes. For more information about working with tables, see Tables.

SQL Script

The pane under SQL Script shows the statement or statements to be run to achieve the result you have specified using the GUI.

You can use this pane just as a preview. You can also edit the statement or statements right there.


Execute in database

Change data structure in your database by running the statement or statements.

Execute. Execute the statements right away. If associated changes in database consoles are possible, the corresponding preview is shown.

Preview. Preview potential associated changes prior to executing the statements.

Open in editor

Copy the statements into the corresponding query console or SQL file.

  • Modify existing objects. In the generated set of statements, ALTER statements are preferred to CREATE statements.

  • Create modified objects. The changes you have made using the GUI are translated into a minimal set of CREATE and other statements.

  • Create all objects. The generated set always includes the CREATE TABLE statement, as if the whole table were created anew.

To Editor. Switch to the corresponding editor tab right away. If associated changes are possible, the corresponding preview is shown prior to copying the statements.

Preview. Preview potential associated changes.

Last modified: 08 March 2021