Created
May 31, 2013 12:24
-
-
Save dkalamari/5684651 to your computer and use it in GitHub Desktop.
MYSQL Get ID from Insert command
This file contains hidden or 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
INSERT INTO user(mail, adress) VALUES('[email protected]','Unknown'); | |
select LAST_INSERT_ID(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment