MySQLdb returns not all arguments converted with “on duplicate key update”

后端 未结 2 907
南笙
南笙 2020-12-15 01:43

With MySQLdb package in python, I want to insert records with checking some unique keys. The method I used is executemany. The arguments are sql sentence and a tuple. But wh

2条回答
  •  甜味超标
    2020-12-15 02:06

    You have three elements in dData but only two %s placeholders for them to go into.

提交回复
热议问题