MySQL Forums
Forum List  »  Spanish

Re: update
Posted by: Peter Brawley
Date: May 27, 2022 09:48AM

Lea sobre INNER JOIN en el manual.

Suponiendo que las dos tablas tengan la misma clave principal, aquí asumiré `invid`...

UPDATE inventory AS A
JOIN inventory2 AS b USING(invid)
SET a.minima = b.minima;

Options: ReplyQuote

Written By
May 27, 2022 07:22AM
Re: update
May 27, 2022 09:48AM

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.