Mysql选择上次插入的行

时间:2017-06-22 16:27:25

标签: mysql stored-procedures phpmyadmin

我正在使用phpmyadmin为mysql 5.5.55创建一个存储过程。

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

SELECT LAST_INSERT_ID();

但我在SELECT LAST_INSERT_ID();

中收到语法错误

编辑:

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

0 个答案:

没有答案