MySQL存储过程出错

时间:2016-03-02 11:56:50

标签: mysql sql stored-procedures

我有一个简单的存储过程:

docker commit -m file1 file2 

这给了我:

DELIMITER $$

CREATE PROCEDURE `my_proc`(IN mac VARCHAR(12), IN my_field1 INTEGER)
BEGIN 
 UPDATE mytable SET field1 = my_field1 WHERE mac_address = mac;
END$$

第4行是" 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4 "

这怎么可能?

0 个答案:

没有答案