Built-in Type page
Use this box to specify the data type of the column. The data type can be one of:
Length
Use this field to specify the length (byte count) of the columns based on the specified data type:
The maximum record size depends on the page size of the table space (the size of its buffer) and whether an edit procedure is specified for the table. The maximum record size when there's no edit procedure on the table is:
If you specify a value that evaluates to 2 GB (2 147 483 648 bytes), DB2 uses a value that is one byte less (2 147 483 647 bytes).
LOB unit
Use this field to specify the units in which the length of a large object (LOB) column is to be measured. This field is available only if the column's data type is CLOB, BLOB, or DBCLOB. The LOB units multiplied by the value you specify in the Length field sets the maximum length for the column.
Use this field to specify the constant value to be assigned to the column in the absence of a value specified on an insert or load operation. The value that you specify must be a valid value for the column's data type. If you do not specify a value in this field, a default value is assigned depending on the data type of the column.
Exception: If you are altering a table, the default value for existing rows is 1 January 0001.
Exception: If you are altering a table, the default value is 0 hours, 0 minutes, and 0 seconds.
Exception: If you are altering a table, the default value is a timestamp corresponding to a date of 1 January 0001 and a time corresponding to 0 hours, 0 minutes, 0 seconds, and 0 microseconds.
Select this radio button to specify that DB2 will always generate values for the column when a row is inserted into the table. This radio button is only available for the ROWID column data type. Selecting Always is recommended unless you are using this table for replication and have selected the Data capture check box on the Table page of the Create Table notebook.
Select this radio button to specify that DB2 will generate a value for the column when a row is inserted into the table unless a value is specified in the insertion operation. This radio button is only available for the ROWID column data type.
If the insertion operation specifies a value, DB2 uses that value only if it is a valid ROWID value that was previously generated by DB2. If you select this radio button, you must also define a unique single-column index on this ROWID column. Until this index is created, the SQL INSERT statement and the LOAD utility cannot be used to add rows to the table.
Distinct Type page
Use this field to specify the constant value to be assigned to the column in the absence of a value specified on an insert or load operation. If you do not specify a value, the default value that is assigned depends on the data type on which the distinct type is sourced. See Constant value for the list of default values according to data type.
If you selected the Use cast function check box, the constant value that you specify is cast (converted) into the column's distinct type.
If the column's distinct type is sourced on the DB2 ROWID data type, you can select the Always radio button to specify that DB2 will always generate values for the column when a row is inserted into the table. Selecting Always is recommended unless you are using this table for replication and have selected the Data capture check box on the Table page of the Create Table notebook.
If the column's distinct type is sourced on the DB2 ROWID data type, you can select the By default radio button to specify that DB2 will generate a value for the column when a row is inserted into the table unless a value is specified in the insertion operation.
If the insertion operation specifies a value, DB2 uses that value only if it is a valid ROWID value that was previously generated by DB2. If you select this radio button, you must also define a unique single-column index on this ROWID column. Until this index is created, the SQL INSERT statement and the LOAD utility cannot be used to add rows to the table.