Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: cursor problem.
Vegard Tollefsen wrote:
When I call the procedure 'show' I also want to send in an
argument 'grom'.
I want to use that argument when I define a cursor. Like this:
create or replace procedure show (grom in varchar2) is cursor rad is select * from Rom
where Type=grom and Stoerrelse>=6 and Stoerrelse<=15;
But this dont work the way it should. Why?? Thanks.
You need to create cursor with parameter:
create or replace procedure show (grom in varchar2) is
cursor rad(your_param in varchar2 ) is select * from Rom
where Type=your_param and Stoerrelse>=6 and Stoerrelse<=15;
![]() |
![]() |