python execute many with “on duplicate key update”?

后端 未结 4 1893
臣服心动
臣服心动 2021-01-06 15:28

I am trying to executemany in python with on duplicate key update, with the following script:

# data from a previous query (returns 4 integers in each row)
r         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 15:36

    found:

    on duplicate key update col1=VALUES(col1), col2=VALUES(col2)
    

    https://hardforum.com/threads/python-mysql-not-all-arguments-converted-during-string-formatting.1367039/

提交回复
热议问题