Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql check auto increment value

SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'database_name' AND TABLE_NAME = 'table_name';
Comment

mysql set id auto increment

ALTER TABLE users AUTO_INCREMENT=1001;
Comment

mysql get auto_increment value

SELECT `AUTO_INCREMENT`
FROM  INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'DatabaseName'
AND   TABLE_NAME   = 'TableName';
Comment

PREVIOUS NEXT
Code Example
Sql :: delete role postgres 
Sql :: sql server current date 
Sql :: mysql sort by date column 
Sql :: sql not contains 
Sql :: foreign key sqlite3 python 
Sql :: how to drop a database in sql server when it is in use 
Sql :: ORA-00903 
Sql :: oracle search in date columns 
Sql :: show procedures mysql 
Sql :: oracle tables with column name 
Sql :: python how escape sql 
Sql :: contains word in sql 
Sql :: postgresql today - 1 year 
Sql :: pl sql disable trigger 
Sql :: copy data from one table column to another table column in sql 
Sql :: date format in sql 
Sql :: mysql add to number 
Sql :: temp table sql 
Sql :: sql get last id 
Sql :: oracle trigger after logon on database 
Sql :: change role postgres 
Sql :: pl/sql loop example 
Sql :: oracle sql create table from select 
Sql :: how to find sql server agent jobs related to a database 
Sql :: show all tables postgres 
Sql :: sql mm/dd/yyyy format 
Sql :: datediff 
Sql :: how to create a table in mysql 
Sql :: ascending order mysql 
Sql :: oracle sql select all days between two dates except weekends 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =