how can stop the sequence with mention the max value and
with out mention the max value
Answer Posted / lipika
To create a sequence that stops at a predefined limit, for
an ascending sequence, specify a value for the MAXVALUE
parameter.
For a descending sequence, specify a value for the MINVALUE
parameter. Also specify NOCYCLE. Any attempt to generate a
sequence number once the sequence has reached its limit
results in an error.
NOTE:-Interval between the sequence value must be less than
the difference of MAXVALUE and MINVALUE. If this value is
negative, then the sequence descends. If the value is
positive, then the sequence ascends. If you omit this
clause, then the interval defaults to 1.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How many types of functions are there in sql?
What is the life of an sql statement?
What is sql integrity?
What is graph sql?
What are the uses of sysdate and user keywords?
What is sap sql anywhere?
How long does it take to learn pl sql?
What are the types of queries in sql?
Can delete statement be rollbacked?
What is input buffer in sql*plus?
What is union?
What is the difference between a procedure and a function?
How do you explain an index number?
What is compound trigger?
Can we use ddl statements in stored procedure?