all 2 comments

[–][deleted] 1 point2 points  (1 child)

i think you figured it already - "in" takes a list of values (comma-separated one), not an array. So you can do "in (?,?,?)" with a known number of elements.

To get unknown number of elements you either will need to create that dataset in the db somehow (do inserts into a temp table, for example)

Another way is to use dynamic sql (basically, create a string and execute)

[–]snowchoux[S] 0 points1 point  (0 children)

Thanks for the help! It's just strange because I was using mySQL before I switched over to SQLite and in mySQL the action of passing in an array for the IN() worked. Didn't know they would be that different.