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 inside begin/end block

668815Nov 6 2008 — edited Nov 6 2008
Hi All,
Can we declare a cursor inside a begin/end block. If we can, please let me know how. I want to declare a cursor where it will return value based on user parameters. User will be entering like username(for example), we have to retrive the ID of the username and we have to pass it to cursor. For this we have written a query to fetch id into a variable in other begin/end block and we have pass this variable into cursor. Is this possible.



Thanks and Regards,
Mahesh
This post has been answered by BluShadow on Nov 6 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2008
Added on Nov 6 2008
4 comments
8,448 views