Skip to content

Instantly share code, notes, and snippets.

@moscoquera
Forked from montogeek/gist:8591575
Last active January 4, 2016 07:49
Show Gist options
  • Save moscoquera/8591626 to your computer and use it in GitHub Desktop.
Save moscoquera/8591626 to your computer and use it in GitHub Desktop.
update personas set updated_at = (select personas_23_dic.updated_at from personas_23_dic where DATE(personas.updated_at) = '2013-12-24' and personas.id = personas_23_dic.id) where exists (select * from personas_23_dic where personas_23_dic.id = personas.id and DATE(personas.updated_at) = '2013-12-24')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment