MySQL Forums
Forum List  »  InnoDB

Re: Can insert update a table based on match of one column value?
Posted by: Peter Brawley
Date: February 05, 2019 10:47AM

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

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.