Skip to content

Functions

/

Database functions

Sequence

These functions can be used to work with sequences.

Function

Description

sequence::nextval()

Returns the next value in a sequence.

The sequence::nextval function returns the next value in a sequence.

API DEFINITION
sequence::nextval($seq_name: string) -> int
DEFINE SEQUENCE mySeq2 BATCH 1000 START 100 TIMEOUT 5s;
sequence::nextval('mySeq2');
Output
100

Was this page helpful?

Last updated