Skip to content

Instantly share code, notes, and snippets.

@ovnicraft
Created January 31, 2014 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ovnicraft/8742224 to your computer and use it in GitHub Desktop.
Save ovnicraft/8742224 to your computer and use it in GitHub Desktop.
update project_project set order_name=sq.new_name from
(select a.name as new_name, p.id as project_id from project_project p, account_analytic_account a where p.analytic_account_id=a.id) sq where project_project.id=sq.project_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment