Use the VALUES statement using the PREVIOUS VALUE option to view the reference information associated with a sequence or to view the sequence itself.
VALUES PREVIOUS VALUE FOR id_values
1
-----------
1
1 record(s) selected.
VALUES PREVIOUS VALUE FOR id_values
1
-----------
1
1 record(s) selected.
VALUES PREVIOUS VALUE FOR id_values
1
-----------
1
1 record(s) selected.
VALUES NEXT VALUE FOR id_values
1
-----------
2
1 record(s) selected.
VALUES PREVIOUS VALUE FOR id_values
1
-----------
2
1 record(s) selected.
This is even true if another connection consumes sequence values at the same time.