标签: python-3.x sqlite
我希望发出此查询SELECT code FROM table1 WHERE id IN (1,4,5,6);。
SELECT code FROM table1 WHERE id IN (1,4,5,6);
是否可以使用某种形式的Connection.execute("SELECT code FROM table1 WHERE id IN ?", ...);并绑定可迭代的(1,4,5,6)?
Connection.execute("SELECT code FROM table1 WHERE id IN ?", ...);