MySQL Forums
Forum List  »  General

Re: Avoid to save a new copy of a post
Posted by: Peter Brawley
Date: March 14, 2014 07:31PM

> If I only use "INSERT INTO...." it will result in that I still have the old post in the table, aswell as the new one.

Indeed, so you'd use an UPDATE statement instead (see the manual page for UPDATE) eg UPDATE tablename SET contest_name=..., year=... WHERE contest_id=<current_key_value>.

Options: ReplyQuote


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


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.