Yousaf Ameer (YousafAmeer) uses Bloggers to connect with peer Bloggers. Join the largest Bloggers Community to follow Yousaf Ameer (YousafAmeer), and build your audience now!
What are bind parameter and lexical parameter used for? A bind reference replaces a single value or expression.To create a bind reference in a query, prefix the parameter name with a colon (:).
Example:
select value1 from test_table where field_name = :p_b_field_name;
A lexical reference is a text string and can replace any part of a SELECT statement, such as column names, the FROM clause, the WHERE clause, or the ORDER BY clause. To create a lexical reference in a query, prefix the parameter name with an ampersand (&).
Example:
select value1 from test_table order by &p_l_field_name ;
Yousaf Ameer ∙ 24 weeks ago
What are bind parameter and lexical parameter used for?
A bind reference replaces a single value or expression.To create a bind reference in a query, prefix the parameter name with a colon (:).
Example:
select value1
from test_table
where field_name = :p_b_field_name;
A lexical reference is a text string and can replace any part of a SELECT statement, such as column names, the FROM clause, the WHERE clause, or the ORDER BY clause. To create a lexical reference in a query, prefix the parameter name with an ampersand (&).
Example:
select value1
from test_table
order by &p_l_field_name ;