Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW
2015-06-10 16:30
567 查看
1、错误描述
2、错误原因
3、解决办法
out参数是数据库表中的字段
16:27:36 call new_procedure(20150112,1) Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW pseudo-variable in BEFORE trigger0.063 sec
2、错误原因
CREATE DEFINER=`root`@`localhost` PROCEDURE `new_procedure`(in `departId` int,out `num` int) BEGIN select count(t.depart_name) into num from t_department_info t where t.depart_id = departId; END
call new_procedure(20150112,1);
3、解决办法
call new_procedure(20150112,@depart_id);
out参数是数据库表中的字段
select @depart_id as depart_id_out;
相关文章推荐
- [Python]网络爬虫(12):爬虫框架Scrapy的第一个爬虫示例入门教程
- Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7
- CButton控件(复选框、按钮消隐)常用操作
- Blocks学习笔记总结
- Android中的“再按一次返回键退出程序”de实现
- Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW
- 几个非常酷的滚动视差效果的网页模板推荐
- POJ 1504
- 字符串截断输出
- Java装饰者模式
- 国产达梦数据库的结合Enterprise Library的应用开发
- leetcode:Happy Number
- 欧拉函数
- oracle内存管理相关知识整理
- GRE的issue写作要求
- 拉格朗日乘子法和KKT条件
- Linux-C成长之路(八)Linux C编程实战之路 存储类,动态内存
- 安卓5.0终于出现在最新版本份额统计中
- [Python]网络爬虫(11):亮剑!爬虫框架小抓抓Scrapy闪亮登场!
- jdk问题