首页 > 数据库技术 > 详细

mysql 创建存储过程或函数常见错误

时间:2015-09-11 02:09:15      阅读:362      评论:0      收藏:0      [点我收藏+]

(1)、ERROR 1418:

# [Err] 1418 - This function has none of DETERMINISTIC,
# NO SQL, or READS SQL DATA in its declaration and binary
# logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

设置下面全局参数:

log-bin-trust-function-creators=1

(2)、ERROR 1064:

[Err] 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

?

增加下面说明:

delimiter //

mysql 创建存储过程或函数常见错误

原文:http://dbaspider.iteye.com/blog/2242446

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!