In Oracle OCI, I can prepare a statement like:
select * from t where pk in :1
and bind a VArray collection for the :1 placeholder.
I don't see any way to do the equivalent in SQLite, unless I use one of the following works arounds:
prepare
select * from t where pk=:1
instead and execute this N times with all the pks in my collection, and manually do a "union" of the rows from the N queries
put my collection of pk in a temporary table and do a join with t on it.
- textually replace :1 with the collection values, negating the benefits of prepared statements.
Am I missing something? And what would be the recommended way to emulate OCI's collection binding? Thanks, --DD