`currval` is used in Sybase SAP SQL Anywhere to get the current value of a database sequence. `CURRVAl` can only be used if `NEXTVAL` is called in the same connection/session.
currval
is used in Sybase SAP SQL Anywhere to get the current value of a database sequence. CURRVAl
can only be used if NEXTVAL
is called in the same connection/session.
For example:
SELECT your_sequence_name.currval
for getting the current position/value of the sequence your_sequence_name
.