开发者

Is there a way to write into python code a command to include duplicate entries into a My SQL database

I have to write up a python program that communicates with a My SQL database to write in data... I have done the code however it does not开发者_如何学Go enter all the data as it says there are duplicates... is there a way to just inclue them?


You should provide more information like you SQL and database schema. It sounds like you are trying to insert items with the same primary key. If you remove the primary key you should be able to insert the data, or change the insert statement to not insert the field which is the primary key.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜