narjis Posted August 24, 2012 Share Posted August 24, 2012 I'm trying to update a table having three primary keys but getting the following error: Duplicate entry '1-1' for key 'PRIMARY' when updating the database. Before it was updating properly when I had made only one primary key. Link to comment https://forums.phpfreaks.com/topic/267522-duplicate-key-error/ Share on other sites More sharing options...
suresh_kamrushi Posted August 24, 2012 Share Posted August 24, 2012 You must already have 1-1 combination in your table. Hence you can not create same row again and that is what Mysql giving the error. Link to comment https://forums.phpfreaks.com/topic/267522-duplicate-key-error/#findComment-1372073 Share on other sites More sharing options...
fenway Posted August 26, 2012 Share Posted August 26, 2012 You haven't given us tables. You haven't given us the offending queries. How are we possibly supposed to help? Link to comment https://forums.phpfreaks.com/topic/267522-duplicate-key-error/#findComment-1372576 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.