Creating Sequence
Follow the steps below to create a sequence:
- In the Object Browser pane, right-click Sequences under the particular schema where you want to create the sequence and select Create Sequence.
The Create New Sequence dialog box is displayed.
- Provide information to create a sequence:
- Enter a name in the Sequence Name field.
Select the Case check box to retain the capitalization of the text entered in Sequence Name field. For example, if the sequence name entered is "Employee", then the sequence name is created as "Employee".
- Enter the minimum value in the Minimum Value field.
- Enter the increase step value in the Increment By field.
- Enter maximum value in the Maximum Value field.
The minimum and maximum value should be between -9223372036854775808 and 9223372036854775807.
- Enter the start value of the sequence in Start Value field.
- Enter the cache information in Cache field. The cache value denotes the number of sequences stored in the memory for quick access.
- Select the Cycle field to recycle sequences after the number of sequences reaches either the maximum or minimum value.
The schema name auto-populates in the Schema field.
- Select the table from the Table drop-down list.
- Select the column from the Column drop-down list.
- Enter a name in the Sequence Name field.
- Click Finish.
The status bar displays the status of the completed operation.
In the SQL Preview tab, you can view the SQL query automatically generated for the inputs provided.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot