2 ms·
As a non-webdev who only have a surface-level understanding of SQL: is that a thing people do regularly? Like, you literally append a bunch of strings together
by OskarS 8y ago
As a non-webdev who only have a surface-level understanding of SQL: is that a thing people do regularly? Like, you literally append a bunch of strings together dynamically every request to construct queries?
- mooreds 8y agoIt 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'"; } ...