CREATE FUNCTION myfunc () RETURNS INT
BEGIN
RETURN 0;
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
这4行代码,在 phpmyadmin 中执行出错.
错误在哪里?谢谢.
调试欢乐多
RETURN 0;这样就行了。
CREATE FUNCTION myfunc () RETURNS INT
BEGIN
RETURN 0;
END//
delimiter ;至余delimiter 的作用你可以看一下官方手册中的说明。
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖