According to OWASP, there are currently 4 primary defenses against SQLi attacks. This single most important technique for preventing SQLi of these is
Choose matching definition
ask for a row or multiple rows from a table in a database.
Database, File (Table), Record, Field
True
Use of prepared statements (with parameterized queries)