MySQL - ERROR 1406
2016-05-22 17:40
302 查看
1.1.1 现象
执行一个存储过程,出现如下错误: 请更正下列输入错误: CDbCommand 无法执行 SQL 语句: SQLSTATE[HY000]: General error: 1456 Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine sp_rebuild_booktype. The SQL statement executed was: call sp_rebuild_booktype (:parentid)1.1.2 原因
因为存储过程递归调用了,但是没有设置递归层次,所以导致出现这个错误。1.1.3 解决
在存储过程中增加如下代码:SET @@max_sp_recursion_depth = 10; |
SET global max_sp_recursion_depth = 10; |
max_sp_recursion_depth = 10 |
相关文章推荐
- 产后抑郁情绪的调养
- 如何应对数据泄漏 不再重复索尼的失误(转自TT安全)
- xargs的i参数
- (转)Overview of the Logging Improvements in Forefront Threat Management Gat
- 制作Gimp大脑图标
- 网摘--2014年5月12日
- 【翻译】Emmet (ZenCoding) 缩写语法
- 好文转载——追求卓越之旅
- 好文转载—做到更好之前,你需要做得好
- Linux下TFTP+NFS无人值守批量安装linux操作系统(二)
- ARM架构
- Windows RT 版 Surface
- WINDOWS8 三星平板 纯UEFI界面
- Haproxy 与 Cookie
- 忠诚的含义
- 更“优秀”? 必须的!!
- Linux开机启动流程
- How to Install Zabbix 3.0 Beta on CentOS 6
- CSS包含中文的问题
- 领域模型设计的见解