I think closest you can get select * from seq_name
:
dwh=
but last_value
shows the last value allocated for any session
Alternatively, you can use the inserted countdown string based on the "natural primary key"
I would not use nextval () because the sequences are not indifferent.
source share