db.update(table, where='id IN ($id)', vars={'id': id.split(',')})
id 值为串"1,2",以上代码报错: OperationalError: (1241, 'Operand should contain 1 column(s)') 若换成:
db.update(table, where='id IN ($id)', vars={'id': id})
则报:Warning: Truncated incorrect DOUBLE value: '1,2' 莫非对于 IN 操作只能串拼接,不能参数替换?