• Start

Functions

/

Database functions

Sequence

Functions to work with sequences.

Available since: v3.0.0

These functions can be used to work with sequences.

FunctionDescription
sequence::next()Returns the next value in a sequence.

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

API DEFINITION

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

-- 100

Was this page helpful?