大家好,想利用存储过程返回的值做条件,但是我没有办法在查询语句中调用到存储过程。
存储过程返回了2列department_id , departName.select * from tdepartment where department_id in(
call procDepartSelect(0,1))
这样调用怎么都不行,请问大家该怎么做啊,下面是我的存储过程名
procDepartSelect(in parentId int,in depType int)