Create Table wizard - infopops

Specify a schema for the table that you are creating. The initial value is the user ID used to connect to the database. You can select another schema from the drop-down list or type a name in the entry field. The name must be 1 - 30 characters.

Type a name for the table that you are creating. This name can be 1 - 128 characters, and either an ordinary or delimited identifier.

Attention: This name must be unique within the table's schema. No other object in the schema can have the same name as the table.

Optional: Type a 1- to 254-character (including embedded blanks) comment to document the table.

Shows the row number for the table. You can move the rows up and down by dragging the row number. Right click on the row number to get a control in which you can insert a new row, drop a row, or modify values.

Shows the columns defined for the table. Select a column and use the push buttons to change, remove, or reorder a column.

You can click on a cell to enter a column value directly, click Add to add a user-defined column, or click Add predefined to add a predefined column to this list. Make each column name in the table unique. The name can be 1 - 30 characters and either an ordinary or delimited identifier. This is a mandatory field.

Shows the data type of the column. Click on a cell to enter a value directly or double-click to select from a list of data types. This is a mandatory field.

Shows the length of the column. This is based on the selected data type. On a created column, you can only change the length of a VARCHAR data type.

Available only when the data type is DECIMAL. Specify the precision of a decimal number. The precision is the total number of digits. The range is 1 - 31. The default is 5.

Available only when the data type is DECIMAL. Specify the scale of a decimal. The range is 0 - precision number (the number you selected as the precision number). The default is 0.

Specify a multiplier for the length of the columns for data types BLOB, CLOB, and DBCLOB. Click on the cell to select from the drop-down list of options (Bytes, KBytes, MBytes, and GBytes).

Available for data types BLOB, CLOB, DBCLOB, or a distinct type with any of them as a source type in the Data type field. Click on the cell to select logged or compact, or both.

LOBs greater than 1GB cannot be logged. LOBs greater than 10MB should not be logged. Storing data as compact may cause a performance penalty in an append operation on the column.

Available for data types CHARACTER, VARCHAR, or LONG VARCHAR. Select to handle the contents of the column as bit (binary) data. During data exchange with other systems, code page conversions are not performed. Comparisons are done in binary.

Select to allow the column to contain null values. If the column is a primary key column, it cannot be nullable. The default is nullable or the value selected in the Default field.

Select to use a default value for the column. You can not use a default value if you want the column to be a generated column.

Specify a default value. The constant values are CURRENT DATE, CURRENT TIME, CURRENT TIMESTAMP, USER, or NULL. If a default value is not specified, then the default value will be determined by the data type of the column.

Select to enable value compression on the default value.

Select to have DB2 automatically generate the contents of the column. To select this condition, you must clear the Default column in order to turn off integrity checking.

Shows if the column is an identity column. An identity column is a column that is used to generate unique values in a table.

All the columns in the table that are available for use as table partitioning columns are listed. Columns not appearing in the list, do not qualify for use as a table partitioning column. Use the arrow buttons to move one or more columns to the selected columns list for use as a table partitioning column. Column types supported as the table partitioning column include: INTEGER, INT, BIGINT, FLOAT, REAL, DOUBLE, DECIMAL,DEC, NUMERIC, NUM, CHARACTER, CHAR, VARCHAR, CHARACTER VARYING, CHAR VARYING, CHARACTER FOR BIT DATA, CHAR FOR BIT DATA, VARCHAR FOR BIT DATA, CHARACTER VARYING FOR BIT DATA, CHAR VARYING FOR BIT DATA, DATE, TIME, TIMESTAMP, GRAPHIC, VARGRAPHIC, User defined types (distinct).

Use the arrow buttons to move available columns to the selected columns list. Columns appearing in this list are used as table partitioning columns.

Use the Add button to define one or more data partitions on the table. Use the Change or Remove buttons to alter the properties of the data partition or remove a data partition from the list. After the table is created and you exit this wizard, use the Open Data Partitions window to view, add, attach and detach data partitions.

Moves a selected column in the Selected columns list up one position.

Moves a selected column in the Selected columns list down one position.

Opens a window in which you can add one or more data partitions to the table.

Opens a window which allows you to change the properties of a data partition currently in the Data Partitions list.

Removes a data partition from the list.

Opens a window in which you can select columns from a list of predefined columns and add them to your table. When you select a predefined column, the related column values are added to the Columns page.

Opens a window in which you can add a new column to the table that you are creating.

See the SQL Reference for limits on the maximum number of columns that you can create.

Opens a window in which you can change an attribute of a selected column. Select a column in the list and click Change.

Removes a selected column from the Columns list.

Moves a selected column in the Columns list up one position.

Moves a selected column in the Columns list down one position.

Specify to use a separate index space for indexes. This option is available only when you have specified that a DMS table space be used.

Specify to use a separate long space in which to store the values of long columns. Long data can be LONG VARCHAR, LONG VARGRAPHIC, LOB data types, or a distinct type with any of these as source types.

This option is available only when you have specified that a DMS table space be used. If you do not specify a separate long space, the long data is stored in the same table space as the table.

Specify the table space in which to create the table. Select a DMS table space if you want to specify a separate index space or a separate long space.

Specify a separate index space in which to store indexes. This option is only available when you have specified to use a DMS table space.

Specify a separate long space in which to store the values of long columns. Long data can be LONG VARCHAR, LONG VARGRAPHIC, LOB data types, or a distinct type with any of these as source types.

This option is only available when you check the Use separate long space check box. If you do not specify a separate long space, the long data will be stored in the same table space as the table.

Opens the Create Table Space wizard in which you can create a new table space. The default value for the data type is REGULAR. For management, you can select SMS or DMS. You can specify these values in the Create Table Space wizard.

Opens the Create Table Space wizard in which you can create a new index space. The default value for data type is REGULAR and the default value for management is DMS. You can specify these values in the Create Table Space wizard.

This push button is only available if you specified an index space other than <default> in the field below the Use separate index space check box.

Opens the Create Table Space wizard in which you can create a new long space. The default value for data type is LONG and the default value for management is DMS. You can specify these values in the Create Table Space wizard.

This push button is only available if you specified a long space other than <default> in the field below the Use separate long space check box.

Select one or more table spaces to be used for storing regular and long data. You can also specify one table space for indexes. Use the Move up and Move down buttons to change the order of the selected table spaces. Table space rows can only be moved within the same section (Table spaces, Table spaces for indexes, or Table spaces for long data). Use the Create button to create new table spaces.

Opens the Create Table Space wizard in which you can create new table spaces for the table.

Moves the selected table space row up in the list of table spaces. Table space rows can only be moved within the same section (Table spaces, Table spaces for indexes, or Table spaces for long data).

Moves the selected table space row down in the list of table spaces. Table space rows can only be moved within the same section (Table spaces, Table spaces for indexes, or Table spaces for long data).

Assigns the selected table spaces to data partitions using round robin cycling. For example, four data partitions (dp1, dp2, dp3, dp4) are created on a table without assigned table spaces. Two table spaces (tbsp1, tbsp2) are assigned on the Table Spaces page of this wizard. Selecting this checkbox assigns the table spaces using round robin cycling in the following order: tbsp1 is assigned to dp1 and dp3, tbsp2 is assigned to dp2 and dp4.

Assigns the selected long table spaces to data partitions using round robin cycling. For example, four data partitions (dp1, dp2, dp3, dp4) are created on a table without assigned long table spaces. Two long table spaces (ltbsp1, ltbsp2) are assigned on the Table Spaces page of this wizard. Selecting this checkbox assigns the table spaces using round robin cycling in the following order: ltbsp1 is assigned to dp1 and dp3, ltbsp2 is assigned to dp2 and dp4.

Shows the constraint name, the type of key, and the key columns in the table.

Shows the constraint name for the columns defined as keys in the table.

Shows the type of the key. The key type can be primary, unique, foreign, or distribution. (Distribution keys are for databases with multiple database partitions only.) Only one unique key can be defined as the primary key.

Shows the key columns in the table.

Opens a window in which you can add a primary key column. You can define only one unique key to be the primary key. A primary key is a column or set of columns that is used to uniquely identify each row on a table. It is used by the database to increase the efficiency of table operations. It is also used in the creation of foreign keys. A table cannot have more than one primary key, and no column of the primary key can contain a null value.

Opens a window in which you can add unique key columns. A unique key is a key that is constrained so that no two of its values are equal. The columns of a unique key cannot contain null values.

Opens a window where you can add foreign key columns. A foreign key is a column or set of columns whose values are required to match at least one primary key value in another table.

Opens a window in which you can add distribution key columns (for databases with multiple database partitions only). A distribution key is a key that is part of the definition of a table in a partitioned database environment. The distribution key is used to determine the database partition on which the row of data is stored. If a distribution key is defined, unique keys and primary keys must include the same columns as the distribution key (they may have more columns). A table cannot have more than one distribution key.

Opens a window in which you can change a selected key column.

Removes a selected column from your list of key columns.

Moves the selected key column up one row.

Moves the selected key column down one row.

Shows the dimension numbers assigned by the system. Dimension numbers are integers, starting at 1. The system does not generate or store dimension numbers in the catalogs.

Shows the columns in the column group defined in a specific dimension.

Shows the dimension numbers assigned by the system. Dimension numbers are integers, starting at 1. The system does not generate or store dimension numbers in the catalogs.

Shows the columns in the column group defined in a specific dimension.

Opens a window in which you can add a column to the column group of a dimension.

Opens a window in which you can remove a column from the column group of a dimension.

Opens a window in which you can change the columns in the column group of a dimension.

Moves the selected column up one row.

Moves the selected column down one row.

Shows the name of the check constraints, the check condition, and any comments for the table.

Shows the name of the check constraints for the table.

Shows the check condition for the check constraint.

Shows any comment associated with the check constraint.

Opens a window in which you can add a new check constraint to the table.

Removes the selected check constraint from the table.

Opens a window in which you can change an attribute of the selected check constraint.

Moves the selected check constraint up one row.

Moves the selected check constraint down one row.

Moves the wizard back one page.

Moves the wizard forward one page.

Begins to execute the task and closes the wizard. This button is enabled when the task is able to execute.

Cancels the task and closes the wizard.

Specifies the schema to which the nickname belongs. The initial value is the user ID under which you connected to the database.To change this value, you can either select another schema from the list or type in a name. This name can be 1 to 30 characters. If you are creating a new local schema and do not have the privilege to create a schema, the table will not be created.

Type a nickname for the table that you are creating. This name can be 1 to 128 characters, and either an ordinary or delimited identifier. If you do not specify a nickname, the nickname will be the remote table name by default.

Attention: This name must be unique within the table's schema. No other object in the schema can have the same name as the table nickname.

Optional: Type a 1- to 254-character (including embedded blanks) comment to document the table.

Specifies the schema to which the remote table belongs. The initial value is the user ID under which you connected to the database. This name can be 1 to 128 characters. If the schema name that you type does not exist on the data source, it will be created. If you are creating a new remote schema and do not have the privilege to create a schema, the table will not be created.

Type a name for the remote table that you are creating. This name can be 1 to 128 characters, and either an ordinary or delimited identifier.

Attention: This name must be unique within the remote table's schema. No other object in the schema can have the same name as the table.

For MVS, z/OS, and OS/390 servers only: Type the collection (database) in which the table will be created.