Answers for "alter sequence value in oracle"

SQL
6

alter sequence set current value oracle

SELECT LAST_NUMBER FROM ALL_SEQUENCES WHERE SEQUENCE_NAME = 'seq_name';

ALTER SEQUENCE seq_name INCREMENT BY 100;	-- Value to reach desired value - 1
SELECT seq_name.nextval FROM dual;			-- Reinitialize value to desired
ALTER SEQUENCE seq_name INCREMENT BY 1;		-- Back to init step
Posted by: Guest on July-11-2021
3

oracle alter sequence

ALTER SEQUENCE seq_name INCREMENT BY 2;
ALTER SEQUENCE seq_name MAXVALUE 1000;
ALTER SEQUENCE seq_name NOMAXVALUE;
ALTER SEQUENCE seq_name MINVALUE 10;
ALTER SEQUENCE seq_name NOMINVALUE;
ALTER SEQUENCE seq_name CACHE 1000;
ALTER SEQUENCE seq_name NOCACHE;
ALTER SEQUENCE seq_name CYCLE;
ALTER SEQUENCE seq_name NOCYCLE;
Posted by: Guest on July-11-2021

Code answers related to "alter sequence value in oracle"

Code answers related to "SQL"

Browse Popular Code Answers by Language