Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: PLSQL /Enumeration
Kevin Robinson <kevin.s.robinson_at_bt.com> wrote in message news:<3CE4B352.FFF1457D_at_bt.com>...
> Does anyone know if its possible to do the following in PLSQL.
>
> IF var1 IN ( a , b , c , d)
> THEN
> etc.
>
>
> Thanks
>
> Kevin
Kevin, that is a pretty simple question to answer for yourself once you become familar with plsql. Here is some sample code that may help you out:
UT1> declare
2 --
3 v_var1 varchar2(1) := 'B'; 4 v_var2 varchar2(1) := 'G';
PL/SQL procedure successfully completed.
HTH -- Mark D Powell -- Received on Fri May 17 2002 - 09:09:08 CDT