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 string as a parameter to the cursor

528801Sep 11 2007 — edited Sep 11 2007
Hi,

I have one issue with cursor. Anybody could pls tell me how to pass string to the cursor as a parameter, that needs to be concat with select statement in the cursor.

Eg:
cursor cur1(lstr varchar) is
select col1, col2, from table1 ||' '||lstr;

pls assume lstr may be like this where col1='BR1'

Thanks in advance...

Mahi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2007
Added on Sep 11 2007
5 comments
1,277 views