Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to pass a cursor as IN parameter to a procedure

796062Sep 6 2010 — edited Sep 6 2010
Hello

I want to pass a cursor to a procedure as IN parameter.

See the below piece of code:

Cursor mycur is select * from table_name;

Procedure myproc(mycur IN ...)
begin

fetch mycur into v_rec;

......

....
{want to do some updates here}

end;



Please suggest how can I pass the cursor?

Thanks in advance !!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2010
Added on Sep 6 2010
4 comments
27,923 views