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. Quote 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. Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/267522-duplicate-key-error/#findComment-1372576 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.