Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: about PL/SQL cursor

Re: about PL/SQL cursor

From: Kenneth C Stahl <BluesSax_at_Unforgettable.com>
Date: Wed, 01 Sep 1999 07:45:30 -0400
Message-ID: <37CD11DA.D3CEED8A@Unforgettable.com>


CL wrote:

> I am going to use a cursor to query some records upon the a cursor
> parameter.
> the parameter is the operator. some thing like this:
>
> cursor cur_test( opr in varchar2, dept in number) is
> select ename
> from emp
> where deptno opr dept;
>
> then I want to call this cursor as
>
> for rcd in cur_test('>', 30) loop
> ....
> null;
> end loop;
>
> Please help. Thanks
>
> Qianli Luo

You need to learn how to write dynamic pl/sql.That will solve your problem. Received on Wed Sep 01 1999 - 06:45:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US