3 ms·
It is quite common to build up a query. You can and should still use parameters, but I have lost count of the times I have seen code like this: where = "1=1";
by mooreds 9y ago
It is quite common to build up a query. You can and should still use parameters, but I have lost count of the times I have seen code like this:
where = "1=1";
if (cond) {
where += " and foo ='bar'";
}
...