标签: python sql
我必须使用python?
UPDATE <tablename> WHERE fields in (<multiple values separated by comma>)
如何生成以逗号分隔的查询?
答案 0 :(得分:0)
你可以:
values = [1,2,3] query = "UPDATE <tablename> WHERE fields in ("+",".join(values)+")"