MySQL Forums
Forum List  »  InnoDB

Re: Duplicate Entry for an Auto-increment column
Posted by: KimSeong Loh
Date: September 14, 2006 07:10PM

Try do a
select max(auto_inc_col) from tablename

And what is the datatype you used for the auto_inc column

If you reach the max value of the datatype, mysql may truncate to the max value and you got a duplicate key error.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Duplicate Entry for an Auto-increment column
3209
September 14, 2006 07:10PM


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.