MySQL Forums
Forum List  »  General

Re: UPDATE TABLE based on a SELECT query
Posted by: Peter Brawley
Date: November 28, 2016 05:02PM

Is this what you mean/

update cv_table a
join (select file_name, count(file_name) as cnt from csv_detail_table ) b using(file_name)
set a.count_file=b.cnt;

Options: ReplyQuote


Subject
Written By
Posted
Re: UPDATE TABLE based on a SELECT query
November 28, 2016 05:02PM


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.