标签:mysql
1、错误描述
20:27:34 call new_procedure(20150112) Error Code: 1318. Incorrect number of arguments for PROCEDURE company.new_procedure; expected 2, got 1 0.000 sec
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);
在调用存储过程中,需要传入两个参数,但是只传了一个参数
3、解决办法
call new_procedure(20150112,@num);
Error Code: 1318. Incorrect number of arguments for PROCEDURE company.new_procedure; expected 2, got
标签:mysql
原文地址:http://blog.csdn.net/you23hai45/article/details/46431223