since I can't use placeholders ... since the query won't be cached
Why not? The example you showed would allow both these things.
I am worried about ... performance
Instead of worrying, implement and measure. Or at least be more specific, e.g. how many of these queries per hour?
In reply to Re: Dynamic SQL
by Anonymous Monk
in thread Dynamic SQL
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |