Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle reset sequence

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
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql format date 
Sql :: How to fetch data in between startfromdate to starenddate in sql 
Sql :: mysql left join exists 
Sql :: add mysql to path 
Sql :: upload database mysql command line 
Sql :: ms sql how to see active job current run time 
Sql :: mysql get first 2 characters of string 
Sql :: oracle list tables 
Sql :: postgres get next sequence value 
Sql :: mysql show foreign keys 
Sql :: sqlite foreign key 
Sql :: altering the column name in MySQL to have a default value 
Sql :: add new column to the table mysql 
Sql :: nvl postgres 
Sql :: mysql date format unix timestamp 
Sql :: set password mysql 
Sql :: DUPLICATE column values 
Sql :: postgresql show owner of database 
Sql :: sql server list user permissions 
Sql :: sql server for loop 
Sql :: mysql show tables in database 
Sql :: mysql mediumint max value 
Sql :: apex add months to date 
Sql :: drop all foreign key constraints mysql 
Sql :: sql insert query 
Sql :: how to drop a trigger in postgresql 
Sql :: oracle new column 
Sql :: show tables sql 
Sql :: oracle asynchronous procedure 
Sql :: where to locate set password for mysql 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =