MySQL Forums
Forum List  »  General

Re: Avoid to save a new copy of a post
Posted by: Rick James
Date: March 14, 2014 03:45PM

It would be easier to answer if you provide SHOW CREATE TABLE, and the full INSERT statement. I will guess that contest_id is an AUTO_INCREMENT PRIMARY KEY? And that the INSERT does not specify contest_id? In that case, change th INSERT to include the contest_id that you read from. For "new" contests, leave the contest_id out of the INSERT (or provide it with NULL); this will auto-generate a new contest_id.

Options: ReplyQuote


Subject
Written By
Posted
Re: Avoid to save a new copy of a post
March 14, 2014 03:45PM


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.