Created
March 11, 2014 15:56
-
-
Save welly/9488754 to your computer and use it in GitHub Desktop.
MySQL: Update field in table from another table via several joins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update field_data_field_user_about f | |
join profile p on f.entity_id = p.pid | |
join node n on p.uid = n.uid | |
join content_type_profile c on c.nid = n.nid | |
set f.`field_user_about_value` = c.`field_user_about_value` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment