当前位置: 首页 > news >正文

网站后期维护/谷歌关键词

网站后期维护,谷歌关键词,建设网站外贸,网站弹窗广告怎么做1.1.1. ERROR 1418 【环境的叙述性说明】 mysql5.0.67 【问题叙述性说明】 当它来到创建存储过程ERROR 1418一个错误。 # 创建函数SQL声明 CREATE FUNCTION xxx( num01 int ) RETURNSint(11) begin declare mm int default 0; if (xx) then set mm num01*num01*10; elseif …

1.1.1. ERROR 1418

【环境的叙述性说明】

mysql5.0.67

【问题叙述性说明】

当它来到创建存储过程ERROR 1418一个错误。

# 创建函数SQL声明

CREATE FUNCTION `xxx`( num01 int ) RETURNSint(11)

begin

       declare mm  int default 0;

       if  (xx) then

                set mm = num01*num01*10;

       elseif  xxx then

                set mm = 10;  

       else

                case num01

                        when  30 then set mm = 111;

                        when  31 then set mm = 222;

                end case;      

       end if;

       return mm;

end

 

# 报错信息

# ERROR 1418 (HY000) at line xxxxx: Thisfunction has none of DETERMINISTIC, NO SQL, or READS SQL DATA in itsdeclaration and binary logging is enabled (you *might* want to use the lesssafe log_bin_trust_function_creators variable)

 

【解决方法】

关闭关闭binary log或者改动參数。

此处採用改动參数的方法:

set globallog_bin_trust_function_creators=1;

 

【报错原因】

By default, for a CREATE FUNCTION statement to be accepted, at least one of DETERMINISTIC, NOSQL, or READS SQL DATA must be specified explicitly. Otherwise an error occurs:

ERROR1418 (HY000): This function has none of DETERMINISTIC, NO SQL,

or READSSQL DATA in its declaration and binary logging is enabled

(you*might* want to use the less safe log_bin_trust_function_creators

variable)

If you set log_bin_trust_function_creators to 1, the requirement that functions be

deterministic or not modify data is dropped.

 

【參考资料】

Command-LineFormat --log-bin-trust-function-creators

Option-FileFormat log-bin-trust-function-creators

SystemVariable Name log_bin_trust_function_creators

VariableScope Global

DynamicVariable Yes

PermittedValues

Type boolean

Default FALSE

 

This variable applieswhen binary logging is enabled. It controls whether stored function creators canbe trusted not to create stored functions that will cause unsafe events to bewritten to the binary log. If set to 0 (the default), users are not permittedto create or alter stored functions unless they have the SUPER privilege in addition to the CREATE ROUTINE or ALTER ROUTINE privilege. A setting of0 also enforces the restriction that a function must be declared with the DETERMINISTIC characteristic, or with the READS SQL DATA or NO SQL characteristic. If the variable is set to 1, MySQLdoes not enforce these restrictions on stored function creation. This variablealso applies to trigger creation. See Section19.7, “Binary Logging of Stored Programs”.

版权声明:本文博客原创文章。博客,未经同意,不得转载。

http://www.lbrq.cn/news/1456723.html

相关文章:

  • 网站建设预算申请表/深圳网络营销推广培训
  • 个人备案网站名称怎么写/网络推广营销策划方案
  • 未来中森网站建设公司/电商平台有哪些?
  • 商丘做网站公司/宣传推广方案范文
  • 肇庆做网站gdmkd/seo咨询岳阳
  • 沁阳网站建设/汕头企业网络推广
  • 如何建设一个简易网站/天津网站优化软件
  • 柳州做网站那家好/交换友情链接的要求有
  • 如何做滴滴网站平台/房管局备案查询网站
  • 重庆疫情最新政策/天津搜狗seo推广
  • 电脑做网站服务器需要什么/新品上市怎么推广词
  • 正规品牌网站设计推荐/免费行情软件网站大全
  • 优惠券网站制作教程/百度电话客服
  • 服装网站的建设策划/排名点击软件怎样
  • matlab代做网站/网站推广策划
  • 空间网站/关键词提取
  • 网页设计个人/合肥seo网站排名优化公司
  • 免费物业网站模板/北京疫情发布不再公布各区数据
  • vs2015做网站如何添加控件/百度手机怎么刷排名多少钱
  • 自己做动漫 哪个网站赚钱/百度推广app
  • 微信公众号配置 网站建设/域名注册平台
  • 响应式网站开发报价/整合营销案例
  • 公司要招个做网站的人/推广平台的方法
  • 宁波网站seo公司/百度指数批量查询
  • 培训网站模板免费/苏州搜索引擎优化
  • 凡科客服/seo网站优化软件
  • 做网络兼职网站有哪些/百度招聘电话
  • 郑州公司网站建设服务/指数分布的分布函数
  • 购物网站静态页面模板/seo营销推广
  • 如何提升网站速度/站长工具seo综合查询权重
  • Linux U盘识别问题排查指南
  • 13.Redis 的级联复制
  • GaussDB SQL执行计划详解
  • Java基本技术讲解
  • uniapp 跨端开发
  • 实战解析:编程式事务在实际开发中的典型应用场景