Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Clarification on sequences example
Hello
Psuedocolumn NEXTVAL increments the sequence and returns the new value. Consider following example from Oracle manual :
CREATE SEQUENCE eseq
INCREMENT BY 10 The first reference to ESEQ.NEXTVAL returns 1. Now, since the MINIMUM and START WITH parameters are omitted, value for both these clauses is 1 by default. Then, first reference to ESEQ.NEXTVAL must return 11 (1+10), isn't it. Is this mistyped in manual (reference should be for CURRVAL and not NEXTVAL ?) Please explain.
Thanks and Regards,
Rajesh
Received on Tue Nov 10 1998 - 00:04:04 CST