Using CURRVAL

Any reference to CURRVAL returns the current value of the specified sequence, which is the value that your last reference to NEXTVAL returned. After you generate a new value with NEXTVAL, you can continue to access that value using CURRVAL, regardless of whether another user increments the sequence.

If both sequence.CURRVAL and sequence.NEXTVAL occur in an SQL statement, the sequence is incremented only once. In this case, each sequence.CURRVAL and sequence.NEXTVAL expression returns the same value, regardless of the order of sequence.CURRVAL and sequence.NEXTVAL within the statement.