Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get the next auto_increment value mysql

SHOW TABLE STATUS FROM tablename LIKE Auto_increment
/*or*/
SELECT `auto_increment` FROM INFORMATION_SCHEMA.TABLES
WHERE table_name = 'tablename'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql
ADD COMMENT
Topic
Name
9+6 =