top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Oracle: What are CYCLE/NO CYCLE in a sequence?

+1 vote
483 views
Oracle: What are CYCLE/NO CYCLE in a sequence?
posted Sep 3, 2015 by Viswas Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

When a sequence is created using CYCLE option, values for the column are regenerated from MINVALUE once MAXVALUE is reached. Certainly, this option should not be used if the Sequence is created for a primary key column.

When a sequence is created using NO CYCLE option, values for the column are NOT regenerated from MINVALUE once MAXVALUE is reached

answer Sep 4, 2015 by Manikandan J
Similar Questions
0 votes

Consider a sequence whose currval is 1 and gets incremented by 1 by using the nextval reference we get the next number 2. Suppose at this point we issue a rollback and again issue a nextval. What will the output be?

...