`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.