I had this thought... the problem is that this cannot be used as a generic solution, as one can easily run into queries that have more complex where conditions.
However there is one benefit, the queries are now real prepared/binding queries. It is a taken and given thing. I decided to pass.
In reply to Re^3: Looking for neater solution with dynamic query
by pg
in thread Looking for neater solution with dynamic query
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |