Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
 
PREVIOUS NEXT
Tagged: #alter #sequence #set #current #oracle
ADD COMMENT
Topic
Name
3+3 =