Sekvence
Vytvoření sekvence
CREATE SEQUENCE id
START WITH 100
INCREMENT BY 1
MINVALUE = 100
MAXVALUE = 1000;
Vkládáme v insertu
INSERT INTO table (id, name) VALUES (NEXT VALUE FOR id, 'name');
CREATE SEQUENCE id
START WITH 100
INCREMENT BY 1
MINVALUE = 100
MAXVALUE = 1000;
INSERT INTO table (id, name) VALUES (NEXT VALUE FOR id, 'name');