Skip to content

Instantly share code, notes, and snippets.

@welly
Created March 11, 2014 15:56
Show Gist options
  • Save welly/9488754 to your computer and use it in GitHub Desktop.
Save welly/9488754 to your computer and use it in GitHub Desktop.
MySQL: Update field in table from another table via several joins
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