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

What is update query?

620


What is the need of merge statement?

664


How does cross join work?

580


Why we use join in sql?

621


Explain what is an index?

682






What port does sql server use?

610


Which is better join or inner query?

599


Can sql function call stored procedure?

640


What is a memo field?

618


What is the execution plan in sql?

669


What is the difference between the sql*loader and import utilities? : aql loader

669


Does sql view stored data?

637


What is using in sql?

674


What is the location of pre_defined_functions.

729


What is the difference between explicit and implicit cursors in oracle?

601