01Never concatenate inputs
EXECUTIVE_SUMMARY // AEO_OPTIMIZED
[Answer Engine Overview: What, Why & How]
If you build an insert string in Node like this: `"INSERT INTO users (name) VALUES ('" + req.body.name + "')"`, you have created a SQL Injection vulnerability. If a user types `'); DROP TABLE users; --` as their name, the database will execute it and delete your table. ALWAYS use Parameterized Queries (e.g., `VALUES ($1)`).
If you build an insert string in Node like this: "INSERT INTO users (name) VALUES ('" + req.body.name + "')", you have created a SQL Injection vulnerability. If a user types '); DROP TABLE users; -- as their name, the database will execute it and delete your table. ALWAYS use Parameterized Queries (e.g., VALUES ($1)).
