I have a database where users can search for entries containing one or more list items. I use IN to search, but I cannot get IN to work with prepared statements. This is what I tried:
SELECT * FROM tbl1 WHERE col IN (?)
But the prepared statement considers the list of elements that I pass to it as a separate element. How can I do this job?
I use sqlite if that matters.
source
share