Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql set id auto increment

ALTER TABLE users AUTO_INCREMENT=1001;
Comment

change auto increment mysql

ALTER TABLE tbname MODIFY COLUMN columname smallint(5) auto_increment
Comment

update auto increment value in mysql

ALTER TABLE foobar AUTO_INCREMENT=10;
Comment

how to change the auto increment in existing table mysql

ALTER TABLE tbl_access ADD COLUMN `access_id` int(10) NOT NULL PRIMARY KEY AUTO_INCREMENT FIRST
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 :: mysql average of multiple columns 
Sql :: oracle trigger 
Sql :: mysql trim 
Sql :: sql query duplicate rows 
Sql :: oracle sql listagg 
Sql :: (PDOException(code: 2002): SQLSTATE[HY000] [2002] Permission denied at 
Sql :: how to print mysql query of codeigniter query builder 
Sql :: SQL Server - Count number of times a specific character appears in a string 
Sql :: SHOW COLUMNS Statement 
Sql :: oracle drop temporary table 
Sql :: copy table postgres 
Sql :: sql count null 
Sql :: sql common columns 
Sql :: sql upsert 
Sql :: how to delete user in mysql 
Sql :: sql_calc_found_rows 
Sql :: oracle nextval 
Sql :: script sql backup database sql server 
Sql :: how to export only procedures mysql 
Sql :: mysql export and import 
Sql :: sql update where id 
Sql :: how to calculate number of days between two dates excluding weekends in oracle 
Sql :: how to run mysql on terminal mac 
Sql :: mysql milliseconds 
Sql :: connexion mysql 
Sql :: how to select one row in mysql 
Sql :: sql datetime format dd/mm/yyyy hh:mm am/pm 
Sql :: how to select distinct in mysql 
Sql :: empty table sqlite 
Sql :: sql paging query 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =