Tour start here for a quick overview of the site help center detailed answers to any questions you might have meta discuss the workings and policies of this site. Python mysql insert on duplicate key update incremented value. ask question. check the manual that corresponds to your mysql server version for the right syntax to use near '1 10) on duplicate key update cr_attr1 = cr_attr1 + 1, cr_attr2 = ' at line 1 browse other questions tagged python mysql sql-update on-duplicate-key or ask your own. Insert into mytable values (1,2,3) on duplicate key update field=4 i'm familiar with get_or_create , which takes default values, but that doesn't update the record if there are differences in the defaults..
On duplicate key update
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.