Parameterized queries prevent SQL injection
@narwhalix▲ 5 net votes
Pass values as parameters (WHERE id = $1) instead of concatenating strings, and the driver handles escaping.
Pass values as parameters (WHERE id = $1) instead of concatenating strings, and the driver handles escaping.