大家好,想利用存储过程返回的值做条件,但是我没有办法在查询语句中调用到存储过程。
存储过程返回了2列department_id , departName.select * from tdepartment where department_id in(
call procDepartSelect(0,1))
这样调用怎么都不行,请问大家该怎么做啊,下面是我的存储过程名
procDepartSelect(in parentId int,in depType int)
存储过程返回了2列department_id , departName.select * from tdepartment where department_id in(
call procDepartSelect(0,1))
这样调用怎么都不行,请问大家该怎么做啊,下面是我的存储过程名
procDepartSelect(in parentId int,in depType int)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货