IntermediateBasic SELECT

Create a custom Sequence

The query

SQL
CREATE SEQUENCE order_number_seq 
START 1000 
INCREMENT 5;
Tested against PostgreSQL 16

Note

Sequences are independent objects that generate unique numbers. Useful when multiple tables need a shared ID pool.