Database & utility
Scalar
currval()
Return the current value of the sequence. Note that nextval must be called at least once prior to calling currval.
Arguments & returns
currval('sequence_name')
Scalar
| Overload link | 'sequence_name' |
Returns |
|---|---|---|
| #01 | VARCHAR |
BIGINT |
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Guide example · Run to view results.
Catalog examples
SELECT
currval('my_sequence_name');