MySQL Forums
Forum List  »  InnoDB

Re: Can insert update a table based on match of one column value?
Posted by: nobody nobody
Date: February 06, 2019 01:39AM

Peter Brawley Wrote:
-------------------------------------------------------
> Simplest assuming id is a pk: query for the row
> with readstatus=true, if it's not found insert it,
> otherwise update it.

Is that one sql query or two sql queries? Could you elaborate a statement syntax?

Thank you.

Options: ReplyQuote




Sorry, only registered users may post in this forum.

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.