MySQL Forums
Forum List  »  Newbie

Update table with data from another
Posted by: John Noble
Date: November 29, 2018 07:48AM

Hi folks,

Im trying to update a column in one table (salesHistory) with data from another table (nonStockInvoices)

Here is my attempt..
update saleshistory SET nonStockInfo = nonstockinvoices.information1
INNER JOIN saleshistory.invNum ON nonstockinvoices.invNum
WHERE saleshistory.invNum = nonstockinvoices.invNum;

Can anyone advise ?

J

Options: ReplyQuote


Subject
Written By
Posted
Update table with data from another
November 29, 2018 07: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.