MySQL Forums
Forum List  »  Newbie

Re: MySQL copy fields based on conditions
Posted by: Peter Brawley
Date: June 17, 2015 03:11PM

Is this what you mean?

update table1 a
join table2 b on a.content_id=b.post_id and a.prop_name=b.meta_key
set b.meta_value=a.content;

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL copy fields based on conditions
June 17, 2015 03:11PM


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.