QuestionQ203

VerifiedCreating Other Schema Objects

Study the following exhibit:

Question Image

Assuming sequence SEQ1 was created with the ORDER option and INCREMENT BY set to 1, which value is returned by the final SELECT statement?

Explanation

Oracle increments a sequence independently of transaction commit or rollback, so the rollback does not restore its previous value. CURRVAL returns the most recent NEXTVAL obtained in the current session. Although ORDER guarantees that sequence values are generated in request order, other sessions can still obtain NEXTVAL values between these operations; therefore, the last value obtained by this session depends on concurrent sequence use. Oracle Database CREATE SEQUENCE

Learn more

Community Discussion

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