怎样把一个数组参数赋给存储过程?
create or replace procedure test( aaa in varchar2,bbb out number) is
begin
select count(*) into bbb from table where id in (aaa);
end;
这里aaa的值为:'20050204001','20050204002','20050204003'…………
或者有没有别的好办法实现这种功能?
但是不要是根据数组的值在存储过程外部循环调用,因为是BS的程序,那样执行可能效率不好