Create Table: Generate Values panel
You use the Create Table: Generate Values panel to specify information to define generated values for identity or ROWID columns in the table.
Panel and field definitions
- Column Name
- The name of the column in the table you are creating for which you want Db2® to create values.
- Gen (A/D)
- Determines when Db2® generates
values for the column. Valid values are:
- (blank)
- Values not generated for this column.
- A
- Values always generated for this column when a new row is inserted into the table.
- D
- Values generated for this column when a new row is inserted unless a value is specified.
- As Idty (Y/N)
- Identifies whether the column is the identity column for the table
(there can be only one).
- N (or blank)
- Column is not an identity column.
- Y
- Column is the identity column for the table.
- Start value
- Starting value for generating identity column values (integer).
- Incr value
- Interval between consecutive generated identity column values (non-zero integer).
- Caching Option
- An integer specifying how many preallocated values of the identity
column are kept in memory to improve performance. Valid values:
- 0
- Generates a NO CACHE clause.
- n
- Generates a NO CACHE nclause. n must be 2 or more.
Parent panels
Child panels
None.