SQL> The select exam_sequence. Nextval from exam;
NEXTVAL
-- -- -- -- -- -- -- -- -- --
83
84
85
86
87
SQL> The select exam_sequence. Currval from exam;
CURRVAL
-- -- -- -- -- -- -- -- -- --
103
103
103
103
103
103
There are six data in exam table, but and nextval, currval have what relation?
CodePudding user response:
Nextval, the next value of the sequence, each line to take a new value;
Currval, take the current value, each line to get the current value, so is the same;
CodePudding user response: