Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> User_Sequence's LAST_NUMBER column: what is it?
Would someone know what the "LAST_NUMBER" column of the user_sequences
dictionary table contains? It does not seem to be related to the
"NEXTVAL" or "CURRVAL" (see below)
1 select SEQUENCE_NAME, min_value, max_value, last_number 2* from user_sequences where sequence_name = 'MY_SEQ_20011010' SQL> /
SEQUENCE_NAME MIN_VALUE MAX_VALUE LAST_NUMBER ------------------------------ ---------- ---------- ----------- MY_SEQ_20011010 1 1.0000E+27 21
SQL> select MY_SEQ_20011010.nextval, MY_SEQ_20011010.currval from dual;
NEXTVAL CURRVAL
---------- ----------
8 8
Jerry Received on Wed Oct 10 2001 - 21:02:20 CDT