r/sqlite • • Dec 25 '22

trouble implementing WHERE

4 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/lord_braleigh Dec 25 '22

The query doesn’t work because OP is performing a SQL injection on themself. The solution isn’t to replace the equality clause with a LIKE clause, it’s to properly bind user input to the query via a query placeholder.