Sequences
About
Creating
CREATE SEQUENCE IF NOT EXISTS seq_name;-- Specify the type of sequence (smallint | int | bigint)
CREATE SEQUENCE IF NOT EXISTS seq_name AS bigint
START WITH 1000
INCREMENT BY 10
MINVALUE 1000
MAXVALUE 1000000
CACHE 100
-- When the value reaches the maxvalue or minvalue it starts over
CYCLE
;Advance sequence
Get current value
Set sequence to specific value
Deleting
List all sequences
Sharing Sequence
Last updated