No. When you change the statement, you need to re-prepare, and hence replace.
What you can do is cache statement handles based on what field name you've decided to plug in to the query. In theory, you then bite off the overhead of preparing (and query planning) only once per statement.
In reply to Re: Re: Passing a value into a WHERE clause
by dws
in thread Passing a value into a WHERE clause
by peppiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |