MySQL Forums
Forum List  »  Newbie

Re: SQL code to take specific rows from one table and overwrite them in another
Posted by: Peter Brawley
Date: May 10, 2021 03:01PM

Two instances of a i8qMCzNt9_posts table, dbqa71w2mfxarx.i8qMCzNt9_posts
and dbugxamc7km01t.i8qMCzNt9_posts and you wish to update the former from the latter? If so, you need to join them ...

UPDATE dbqa71w2mfxarx.i8qMCzNt9_posts ia
JOIN dbugxamc7km01t.i8qMCzNt9_posts ii ON ia.rowid = ii.rowid

... then SET values as desired. I don't follow your description of the requirement there, so to help more I'd need better info ...

If not, what is the setup?

Options: ReplyQuote


Subject
Written By
Posted
Re: SQL code to take specific rows from one table and overwrite them in another
May 10, 2021 03:01PM


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.