Define Db2 LUW Table Column Properties
In a model based on the Db2 for LUW target server, you use the Db2 for LUW tab in the Table Column Editor to manage the data type, null option, and other properties for the selected column.
The options described here are the basic options available for most physical data types. There can be more options available depending on the physical data type you assign to the table column. We recommend that you refer to your Db2 for LUW documentation for more information about using these properties.
To define Db2 for LUW table column properties
- Right-click a column in the Model Explorer and click Properties.
The Db2 for LUW Table Column Editor opens.
- Select the table from the Table drop-down that contains the column that you want to define.
- Select the column in the Navigation Grid that you want to define.
Click New
on the toolbar to create a column. Use the Enter filter text text box to filter a large list of columns to locate the one that you want to define.
- Click the Db2 for LUW tab and work with the following options:
- Physical Data type
Lets you select a data type from the drop-down list to apply to the selected column. If the selected data type requires a value for precision, scale, or both, enter the value inside the data type parentheses. For example, you can select the DECIMAL() data type and specify a precision of 2 and a scale of 10 inside the parentheses to assign the data type DECIMAL(2,10) to the selected column.
You can also specify the data subtype by entering the precision and subtype inside parentheses. For example, you can select CHAR() data type, specify a precision of 63 and subtype as CODEUNITS32 to assign the data type CHAR(63, CODEUNITS32) to the selected column.- Maximum Length In Row
Lets you enter the maximum length allowed in a row for the data type you assigned (this is same as the Inline Length property).
- Null Option
Lets you specify a null option for the selected column.
- Average Width
Lets you enter an estimated average width for the column. You can later use the Volumetrics dialog to calculate table and database size estimates based on these and other values.
- Percent Null
Lets you enter the estimated percentage of nulls used for that column if the option is available. For example, you can estimate a variable width ADDRESS 2 column assigned a width of 50 characters, to be NULL about 30 percent of the time. Use whole numbers. You can later use the Volumetrics dialog to calculate table and database size estimates based on these and other values.
- Security Label
Specifies the security label for the column. Create or select from the drop-down list.
- Column Compression
Specifies whether to use column compression. Select the check box to enable this option.
- Is LOB Data Compacted
Specifies whether or not the LOB data in a LOB column is compacted.
- Is LOB Data Logged
Specifies whether or not updates to a LOB column are recorded in the system log.
- Generate Options
- An identity column
- A row change timestamp column
- A ROWID column
- A row-begin column
- A row-end column
- A transaction-start-id column
- A generated expression column
Lets you specify how a Db2 generates values of a column. The properties applicable depend on the Physical Data Type that you set.
These options are set if you want the column to work as one of the following types of columns:
- Click the Options tab and work with the following options:
- Name
Specifies any additional options on the columns of the nickname.
- Value
Specifies the value for the selected additional option.
You can enter these values only if you are creating or editing a Nickname.
- (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
- (Optional) Click the Where Used tab to view where the object is used within the model.
- (Optional) Click the UDP tab to work with user-defined properties for the object.
- (Optional) Click the History tab to view the history information for the object.
- (Optional) Click the Notes tab to view and edit user notes.
- Click Close.
Db2 for LUW table column properties are defined and the Db2 for LUW Table Column Editor closes.
Copyright © 2025 Quest Software, Inc. |