Skip to main content

Practice ยท 1 of 2

Safe Lookup

Implement safe_lookup(conn, name) returning rows from users WHERE name = ?. It MUST survive the injection attempt in the test (the classic quote trick must be treated as a literal name).

Difficulty: intermediate

Back to lesson: Practice: Injection-Proof Drills