Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle alter sequence restart start with

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 :: how to check database engine in mysql 
Sql :: ORACLE RIGHT TWO DIGITS 
Sql :: django sqlite database 
Sql :: how to delete view in sql 
Sql :: sql missing records from another table 
Sql :: postgresql create table with index 
Sql :: ifnull postgres 
Sql :: postgresql reset auto_increment index 
Sql :: mysql check if string contains comma separated 
Sql :: sql reset auto increment 
Sql :: sql headers delphi 
Sql :: django sqllite config 
Sql :: wordpress sql change site url 
Sql :: create user mysql 
Sql :: wordpress change user password sql 
Sql :: add primary key to existing table sql 
Sql :: oracle apex prevent initial load 
Sql :: display users in mysql 
Sql :: sql server user permissions and roles 
Sql :: oracle list dates between 
Sql :: sql server query list all databases 
Sql :: mssql int max value 
Sql :: oracle add month 
Sql :: power query concatenate 
Sql :: Columns Present in a table 
Sql :: go install mysql 
Sql :: Database "mem:testdb" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-200] 90149/90149 (Help) 
Sql :: show all public tables sql 
Sql :: pl sql asynchronous procedure calls 
Sql :: sql server select where date 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =