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 resolvedI 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!!!!!!