Don't forget placeholder-usage comes with a price. It's becomes harder for the planner to pick a good execution plan
Don't forget non-placeholder-usage comes with a price. It is much less efficient to prepare and execute 1,000,000 separate queries than it is to prepare a query once and then execute 1,000,000 times with different bound arguments.
In reply to Re^2: Place holders in SQL query
by hippo
in thread Place holders in SQL query
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |