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 4mo 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 4mo agoORMs and query builders ARE concatenating strings.
- codedokode 4mo agoBut in a safe manner.
- Yokohiii 4mo agoYou can do that too.