Created
February 1, 2013 11:06
-
-
Save hoandang/4690691 to your computer and use it in GitHub Desktop.
Return the next auto increment id in Mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='table_name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment