I don't see why you'd need placeholders here.
Someday someone will (accidentally?) stuff an untrusted value into the variable that's being interpolated. Or a bad value will somehow get into the database.
Don't forget placeholder-usage comes with a price.
Optimizations should be reserved for later, when benchmarking shows the problem is in the query.
Placeholders are a good idea.
In reply to Re^2: Place holders in SQL query
by Anonymous Monk
in thread Place holders in SQL query
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |