第一种方法:让他生成一个动态表
(select 表名(i_work, ‘,’) as work )t
where n.specialty like t.work||‘%’
第二种方法定义
在存储过程定义 i_deal2
– productid 产品id
and a.productid in (‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’)
and (( i_deal2 is not null
and instr(‘,’||i_deal2||‘,’,‘,’||productid||‘,’)> 0
) or (i_deal2 is null
)