Created
June 27, 2014 10:31
-
-
Save takahashiyuya/24ea9b53da079653c1f3 to your computer and use it in GitHub Desktop.
自動採番値(要するに次のid)を取得するSQL
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_SCHEMA = "databaseName" AND TABLE_NAME = "tableName"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment