what is lexical parameter?

Answers were Sorted based on User's Feedback



what is lexical parameter?..

Answer / rajeshwar

with this u can specify a complete where condition for
example select * from emp where &lex_par; i.e we can
specify where conditions.with bind variables we give values
to columns in query .

Is This Answer Correct ?    12 Yes 2 No

what is lexical parameter?..

Answer / samaresh

Lexical references are placeholders for columns or
parameters that you embed in a SELECT statement. You can
use lexical references to replace the clauses appearing
after SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING,
CONNECT BY, and START WITH. Use a lexical reference when
you want to substitute multiple values at runtime. You
cannot make lexical references in a PL/SQL statement. You
can, however, use a bind reference in PL/SQL to set the
value of a parameter that is then referenced lexically in
SQL, as shown in te example below. You create a lexical
reference by typing an ampersand (&) followed immediately
by the column or parameter name. A default definition is
not provided for lexical references.
Therefore, you must do the following:
Before you create your query, define a column or parameter
in the data model for each lexical reference in the query.
For columns, you must set the Value if Null property, and,
for parameters, you must set the Initial Value property.

Restrictions::::
You cannot make lexical references in a PL/SQL statement.

If a column or parameter is used as a lexical reference in
a query, its data type must be character.

If you want to use lexical references in your SELECT
clause, you should create a separate lexical reference for
each column you will substitute. In addition, you should
assign an alias to each lexical reference. This enables you
to use the same layout field and boilerplate label for
whatever value you enter for the lexical reference on the
Runtime Parameter Form.

If you use lexical references in your SELECT clause, you
must specify the same number of items at runtime as were
specified in the report's data model. Each value you
specify for your lexical references at runtime must have
the same datatype as its Initial Value.


A lexical reference cannot be used to create additional
bind variables after the After Form trigger fires. For
example, suppose you have a query like the following (note
that the WHERE clause is replaced by a lexical reference):
SELECT ENAME, SAL FROM EMP
&where_clauseIf the value of the where_clause parameter
contains a reference to a bind variable, you must specify
the value in the After Form trigger or earlier. You would
get an error if you supplied the following value for the
parameter in the Before Report trigger: WHERE SAL
= :new_bindIf you supplied this same value in the After
Form trigger, the report would run

Reports Builder uses these values to validate a query with
a lexical reference. Create your query containing lexical
references.

Is This Answer Correct ?    8 Yes 2 No

what is lexical parameter?..

Answer / kmanioralce

Substitute multiple values at run time whereas bind
variable subsitute one value at run time

Is This Answer Correct ?    6 Yes 5 No

Post New Answer

More Oracle Apps Technical Interview Questions

what are the prerequisites for costing transactions?

0 Answers   Scan Steel,


In report we have to show two Layout? how it is and how we can see from where it?

3 Answers   IBM,


What are the different components of soa suite?

0 Answers  


where is setup of business group done?

2 Answers   TCS,


What is Place holder Columns?

3 Answers  


in one report using two layout models.if yes how to do

2 Answers  


what are external tables? how can we use external table instead of sql * loader to load data from flat file to staging table?

1 Answers   IBM,


in procedure how to return a value

2 Answers   Wipro,


any one can expalin report registration steps?

6 Answers   Infosys,


can we use anchor propery in XML reports?if yes?explain?

2 Answers   Oracle,


in order to run utl_file package we need to give any specific path? if yes what is that?where u will run utl_package?

1 Answers   KPMG,


how can we return morethan one parameters in procedure?

2 Answers  


Categories
  • Oracle Apps Technical Interview Questions Oracle Apps Technical (547)
  • Oracle Apps Financial Interview Questions Oracle Apps Financial (793)
  • Oracle Apps Manufacturing Interview Questions Oracle Apps Manufacturing (53)
  • Oracle Apps HRMS Interview Questions Oracle Apps HRMS (169)
  • Oracle Apps CRM Interview Questions Oracle Apps CRM (9)
  • Oracle Apps SCM Interview Questions Oracle Apps SCM (141)
  • Oracle Install Base Interview Questions Oracle Install Base (62)
  • Oracle Service Contracts Interview Questions Oracle Service Contracts (101)
  • Oracle Apps AllOther Interview Questions Oracle Apps AllOther (114)