MySQL Forums
Forum List  »  General

Re: in mysql,is there a quesry like update table set filed as normal?
Posted by: Peter Brawley
Date: August 29, 2014 09:39AM

Are you trying to ask whether there is an Update syntax that does nothing if it finds the specified value already there? You can write ...

update tbl set col=val where col<>val;

Options: ReplyQuote


Subject
Written By
Posted
Re: in mysql,is there a quesry like update table set filed as normal?
August 29, 2014 09:39AM


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.