Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: select (case when .... then ... else ... end) not working in packages?
On Sun, 20 Oct 2002 00:11:29 -0700, "M Hashim"
<m.a.n.hashim_at_sympatico.ca> wrote:
>> It's a bug. The workaround is to rewrite the query in dynamic SQL.
>True..Did the workaround, and it works fine.
>Your choice,
> Execute immediate
>or
> DBMS_SQL
I would also consider a dynamic cursor thing like this :
create or replace procedure foo
is
Type cursorT is REF CURSOR; lCur cursorT; lStatement varchar2(1000);