0

I'm creating a stored procedure using phpmyadmin for mysql 5.5.55 .

INSERT INTO drama_ (value1,value2,value3,value4,value5,value6)
VALUES (val1,val2,0,0,0,0);

SELECT LAST_INSERT_ID();

but i'm getting a syntax error in SELECT LAST_INSERT_ID();

EDIT :

You have an error your SQL syntax: check the manual that corresponds to your MYSQL server version for the right syntax to use near 'SELECT LAST_INSERT_ID()' at line 4
Barmar
  • 741,623
  • 53
  • 500
  • 612

0 Answers0