Home » Developer & Programmer » Reports & Discoverer » lexical & bind parameter
lexical & bind parameter [message #144551] Thu, 27 October 2005 02:08 Go to next message
arunav
Messages: 15
Registered: October 2005
Junior Member
what is the difference between ind parameter and lexical parameter?
can any one explain me with example?
Re: lexical & bind parameter [message #144660 is a reply to message #144551] Thu, 27 October 2005 10:19 Go to previous message
skooman
Messages: 913
Registered: March 2005
Location: Netherlands
Senior Member
Quoted from an article by Paul Dirksen:

Bind parameters are used to substitute one value at runtime for evaluation and are identified by a preceding ‘:’. An example of a bind parameter in a select statement is provided below, where :P_EMP is the bind parameter reference.

select *
from   emp
where  emp.name = :P_EMP;


Lexical parameters are used to substitute multiple values at runtime and are identified by a preceding ‘&’. Lexicals can consist of as little a one line where clause to an entire select statement. An example of a lexical parameter usage in a select statement is below where &L_EMP is the lexical parameter reference.

select *
from   emp
where  &L_EMP;
Previous Topic: Report Speed
Next Topic: how to capture count of sundays
Goto Forum:
  


Current Time: Thu May 16 17:03:55 CDT 2024