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!

Cursor Parameter List

boffmanAug 11 2008 — edited Aug 13 2008
Hi,

recently I found out that a cursor must not have explicit a defined parameter list:

1. Option

cursor cur_example
is
select name
from table1
where name = p_name
;

=> instead of

2. Option

cursor cur_example (p_name IN VARCHAR2)
is
select name
from table1
where name = p_name
;

why is then sometimes a parameterlist definition necessary?

cheers,
Bernhard
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2008
Added on Aug 11 2008
12 comments
638 views