QuestionQ147

VerifiedRelational Database concepts

Which statement returns the most recently generated sequence number from the EMP_SEQ sequence?

Explanation

CURRVAL returns the current value of a specified Oracle sequence—the value produced by the most recent NEXTVAL reference in the current session. Sequence pseudocolumns require sequence_name.CURRVAL notation, and DUAL provides the row source for the SELECT statement. Oracle Database documentation: Managing Views, Sequences, and Synonyms

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!