Use the Sequence editor to define the parameters for a DB2 sequence.
To define a DB2 sequence
The DB2 Sequence Editor opens.
Note: Click New on the toolbar to create a sequence. Use the Enter filter text text box to filter a large list of names to locate the one you want to work with.
Specifies the name of the sequence.
Specifies the default schema for the sequence. Select a schema from the drop-down list.
Specifies the physical data type for the sequence. Select a data type from the drop-down list.
Specifies that Forward Engineering will use the CREATE or REPLACE command instead of the CREATE command.
Note: This field applies to DB2 for LUW version 9.7 only.
Specifies whether or not to generate DDL for this object during Forward Engineering.
Specifies the first value for the sequence.
Specifies the interval between consecutive values of the sequence.
Specifies if you want to indicate the minimum value for the sequence. When you select True from the drop-down list, a second field appears, where you can indicate the value.
Specifies if you want to indicate the maximum value for the sequence. When you select True from the drop-down list, a second field appears, where you can indicate the value.
Specifies that the value of a sequence that reaches its maximum or minimum value to generate its respective minimum value or maximum value on the following NEXT VALUE expression. You can select Cycle or No Cycle.
Specifies the maximum number of sequence values that the database manager generates and stores in memory. When you select True from the drop-down list, the field Cache Capacity appears, where you can indicate the value.
Specifies whether or not the sequence numbers must be generated in order of request.
Specifies the name of the sequence. The first name is always the sequence that you have currently selected. Click the New icon (icon) to create an alias.
Specifies the schema to associate with the alias sequence. Select a schema from the drop-down list.
Note: The Alias tab for a Sequence applies to DB2 for LUW version 9.7 only.
The DB2 for LUW Sequence Editor closes.
Copyright © 2013 CA.
All rights reserved.
|
|