MySQL Forums
Forum List  »  General

Re: error 1061
Posted by: Jonathan Stephens
Date: October 31, 2004 09:20PM

It generally means that you're trying to insert a primary key value that's already being used in another record in the same table. The easiest way to avoid this is to use AUTO_INCREMENT: http://dev.mysql.com/doc/mysql/en/example-AUTO_INCREMENT.html

Jon Stephens
MySQL Documentation Team @ Oracle

MySQL Dev Zone
MySQL Server Documentation
Oracle

Options: ReplyQuote


Subject
Written By
Posted
October 31, 2004 09:05PM
Re: error 1061
October 31, 2004 09:20PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.