如何将cursor.executemany用于插入以外的其他操作

时间:2018-12-30 17:05:56

标签: python python-3.x

我有此代码:

c = conn.cursor()
l=[(A,B,C),]
c.executemany("SELECT * FROM 'my_table' WHERE code=? AND date BETWEEN ? AND ? ORDER BY date",l) 
r = c.fetchall()

我如何使其工作?还有其他选择吗?

1 个答案:

答案 0 :(得分:0)

True