Reputation: 617
I am rewriting source code from mysql to sqlite and don't know how to escape a sequence argument in APSW driver:
cur.execute("""
select *
from users
where user_id in ?
""", [[1, 2, 3]])
It is definitely a very basic need and it works well in mysql driver but I cannot find any such example for sqlite (APSW) by searching internet.
Upvotes: 0
Views: 97
Reputation: 180
This will work:
cur.execute("""
select *
from users
where user_id in ?
""", ((1, 2, 3)))
Upvotes: 0