【发布时间】:2014-02-13 14:32:34
【问题描述】:
我有以下功能:
function Rpt01 (param IN varchar2)
is
vtype varchar2(50);
cursor Ccur is
select *
from table1, table2
where table1.date=table2.date
and table1.id=table2.id
and table1.cclient in (vtype);
begin
select (case when param='A' then 'A'
when param='B' then 'B'
else 'All' end)
into vtype
from dual;
for rec in Ccur
loop
do sth....
end loop;
end;
我的问题是我想在其他情况下(A 和 B)而不是“全部”为 vtype 分配多个值。 我试过这些'A'||','||'B'或'''A'''||','||'''B'''。但这不起作用。任何人都可以提出解决方案吗?
【问题讨论】: