Module ops

Module ops 

Source
Expand description

Sequence operations for retrieving and manipulating sequence values.

Functionsยง

currval
Generate SQL for getting the current value of a sequence (last retrieved value in session).
default_nextval
Generate SQL expression for using a sequence as a default value.
last_insert_id
Generate SQL for getting the last inserted ID (auto-increment value).
nextval
Generate SQL for getting the next value from a sequence.
setval
Generate SQL for setting a sequence to a specific value.