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


Please Help Members By Posting Answers For Below Questions

How is data stored on a disk?

726


Is it possible to sort a column using a column alias?

816


what are properties of a transaction? : Sql dba

760


what is sp_pkeys? : Transact sql

889


how can we take a backup of a mysql table and how can we restore it. ? : Sql dba

719






Does pl/sql support create command?

743


What is update query?

711


What is bulk collect in pl sql?

728


Can unique keys be null?

663


Why query optimization is needed?

683


What does truncate mean in sql?

720


how to create a test table in your mysql server? : Sql dba

685


What are data types in pl sql?

780


What is sqlservr exe?

697


How many types of keys are there in sql?

756