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


Subject
Views
Written By
Posted
138
May 27, 2022 07:22AM
Re: update
78
May 27, 2022 09:48AM


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.