Home > other >  Python UPDATE mysql problem (ON the DUPLICATE KEY UPDATE)
Python UPDATE mysql problem (ON the DUPLICATE KEY UPDATE)

Time:09-29

Excuse me, great god, how to use the only index update mysql in python?

Sql_insert="INSERT INTO A_test (DATE, NAME, AGE, SCHOOL) VALUES (' % s', '% s',' %. 2 f ', '% s') on duplicate key update DATE=20200207, NAME=lssao, AGE=6, SCHOOL=ci"

Try for a long time have no,

CodePudding user response:

Has been resolved

I use this app # CSDN# found have technical content of the blog and friends to seek common to "Python + mysql using unique index (on the duplicate key update) to avoid repeating data insert", gathered together at https://blog.csdn.net/weixin_39964518/article/details/104223661? Utm_source=app

CodePudding user response:

Congratulations to the original poster!!!!!!
  • Related