javascript
Brief description  about Online courses   join in Online courses
View Rigin  V 's Profile

What are bind variables and why are they important?

What are bind variables and why are they important?
Asked by Rigin V | Jan 25, 2011 |  Reply now
Replies (1)
View arun kumar das 's Profile
With bind variables in SQL, Oracle can cache related queries a single time in the SQL cache (area). This avoids a hard parse each time, which saves on various locking and latching resources we use to check objects existence and so on. BONUS: For rarely run queries, especially BATCH queries, we explicitly DO NOT want to use bind variables, as they hide information from the Cost Based Optimizer.
Jan 26, 2011