Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lexical Parameters

Status
Not open for further replies.

Mimin

Programmer
Jan 12, 2004
18
US
is there any possiblity that i could use a parameter that is changed dynamically in pl-sql like lexical parameter of query?
Thanks
 
does anybody had any solution for lexical parameter i am using on the following pl/sqp

i had query like this
select s, y from z
&p1
&p2;
then i had one procedure
procedure xxx (x in varchar2)
w varchar2(10);

cursor is select h,t from z
&p1

how could i use the paramters that i already used in the first query if i want to do the same in the procedure?
Thanks
 
Thanks for the reply
But is it possible to use srw.do_sql for creating cursor within the procedure. i want to create cursor cause the query returns more than one rows.
Thanks
 
Hi,
Can you explain what are you using &p for?

You may completely base your Report on Refcursors also or may make use of Inline views.
Even you can make use of Data parameter to prepare & populate your Report from the calling form.

So, please explain your requirment in a bit detail.

Regards
Himanshu
 
Thanks
i am using &p to have a parameter that is going to be changed dynamically(lexical parameter). I had main query and i want to have a formula column which gets the value from the procedure. the procedure should take the parameters that i used in the main query (i mean the lexical parameters i used in the main query). but it is not possible to used lexical parameters in pl/sql. i think i make my requirment a little bit clear.
I appreciate your assistance
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top