2
我想以下存储过程添加到我的MySQL数据库:MySQL存储过程错误
CREATE PROCEDURE logmsg (_Username VARCHAR(50), _Message VARCHAR(80))
BEGIN
INSERT INTO chatlogs (sender, message) VALUES (_Username, _Message);
END;
但其失败的查询并返回:
#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 3
我一直在寻找在google上大概2个小时,根本找不到任何答案。
任何帮助,非常感谢!
Thanks !!我认为它现在有效。 – Daniel 2010-09-13 07:35:50
你说得对。 +1 – NullUserException 2010-09-13 07:36:18