Through the Create/Alter/Drop Table dialog box, SQLWizard provides an interactive means of creating, altering, and dropping tables. In addition to allowing changes to a table's column definition, the Create Table and Alter Table dialog boxes let you add or change an existing table's indexes, primary keys, foreign keys, synonyms, and aliases.
The following describes all fields on the Create/Alter/Drop Table dialog box.
Table Name | Specifies a table name using a three-part, two-part, or unqualified table name, as appropriate. If you are altering or dropping a table, you can choose the table name from the Catalog Browser dialog box or the Open Table dialog box when you first access the Alter/Drop Table dialog box. |
Comments | Describes the table. The comment is stored in the Remarks column in the SYSIBM.SYSTABLES table. |
Indexes and Keys | Contains a list of the current or pending indexes on the table. You can choose one of the buttons to create, alter, or drop an index or key. |
Relationships | Contains a list of current foreign keys on this table. You can choose one of the buttons to create, alter, or drop a foreign key. |
OK button | Accepts all table definition information as shown on the Create/Alter Table dialog box and executes the SQL commands to effect them. On the Drop Table dialog box, the OK button executes the SQL command to drop the table and all its related files and database objects. |
Cancel Button | Discards all entries or changes that may have been made on the Create/Alter/Drop dialog box. |
Options Button | Accesses the Table Options dialog box where you can define synonyms and aliases, as well as other important options for your table specification. |
SQL Button | Opens the Show SQL window to display the pending SQL command(s). Information shown on the Create/Alter/Drop Table dialog box are used by SQLWizard to generate the SQL command(s). |
Field (Column) Definitions | The grid at the bottom of the Create/Alter/Drop Table dialog box is used to define the columns in your table. Except for the
field name, you can either use the default values provided, or change the fields as described below.
|