PLS-00703: 列表中具有指定参数的多个实例 create or replace procedure getProDetail
(
pageSize in int,
pageIndex in int,
comID in int
)
is
sqlResult varchar2(500) :='select c_proname,c_protrademarkname,c_brand,c_enterdate,c_tradetype,c_certificateid,c_trademarkpropertity,c_tmname,c_tmsmalltype
from t_products p inner join t_trademarktype t on p.c_tmtypeid=t.c_id
where c_companyid=';
ex_sql varchar2(1000);
begin
ex_sql:='select B.* from (select A.*,rownum as r from
('||sqlResult||comID||') A where rownum<=('||pageIndex*pageSize||')) B
where B.R>('||(pageIndex-1)*pageSize||')';
execute immediate ex_sql;
end getProDetail;