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!

Declare Cursor in PL/SQL

s331246Dec 22 2006 — edited Dec 22 2006
HI ALL,

Is it possiable declare inside of Procedure body?

Example:

BEGIN

IF test = 1 then

Declare CursorA.....where num =1;

ElSIF test = 2 then

Declare CursorA....where num=2;

ELSE

Declare CursorA....where num=3;


END;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2007
Added on Dec 22 2006
4 comments
484 views