Lexical Parameters [message #90229] |
Wed, 15 December 2004 02:35 |
pooja
Messages: 31 Registered: September 1999
|
Member |
|
|
HI All,
Can we use lexical parameters in From clause of a
query??
Ex:
SELECT empno,ename
&lex_prm;
Its urgent..can nyone can explain this.
pooja
|
|
|
Re: Lexical Parameters [message #90231 is a reply to message #90229] |
Wed, 15 December 2004 22:49 |
Himanshu
Messages: 457 Registered: December 2001
|
Senior Member |
|
|
Hi,
yes you can.
E.g. Create a parameter P_query in your report.
Set its initial value as Select empno,ename,deptno from emp;
Now write our query in datamodel as :
Select empno,ename,deptno
from (&P_query);
HTH
regards
Himanshu
|
|
|