3 ms·
One usually uses "query builder" pattern for that. Also, regarding placeholders, historically many DB and frameworks do not support passing lists for a value i
by codedokode 2mo ago
One usually uses "query builder" pattern for that.
Also, regarding placeholders, historically many DB and frameworks do not support passing lists for a value in a placeholder (like "WHERE id IN(?)") so users of such software fall back to string concatenation.
- Yokohiii 2mo agoORMs and query builders ARE concatenating strings.
- codedokode 2mo agoBut in a safe manner.
- Yokohiii 2mo agoYou can do that too.