日期:2014-05-17 浏览次数:21028 次
SQL> declare
2 s nvarchar2(5);
3 v_item_cut nvarchar2(100);
4 begin
5 s:='50204';
6 v_item_cut := ''''||'50204'||''''||','||''''||'50404'||'''';
7 dbms_output.put_line(v_item_cut);
8 if INSTR(v_item_cut,S)>0 then
9 dbms_output.put_line('in');
10 else
11 dbms_output.put_line('Not in');
12 end if;
13 end;
14 /
'50204','50404'
in
PL/SQL procedure successfully completed
SQL