QuestionQ147Verified/Relational Database conceptsCopy linkReport a problemAsk AstroTutorSave questionWhich statement returns the most recently generated sequence number from the EMP_SEQ sequence?ASELECT CURRVAL FROM emp_seq;BSELECT emp_seq.CURRVAL FROM DUAL;CSELECT NEXTVAL FROM emp_seq;DSELECT emp_seq.NEXTVAL FROM DUAL;Show AnswerAnswerExplanationCURRVAL 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 SynonymsLearn moreOracle Database: Managing Views, Sequences, and SynonymsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion