Created
February 17, 2020 13:40
-
-
Save miklblitz/439ccc922629b97f4aad56215dea478a to your computer and use it in GitHub Desktop.
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 need_to_update | |
INNER JOIN original ON need_to_update.id = original.id | |
SET need_to_update.field1 = original.field1, | |
need_to_update.field2 = original.field2, | |
need_to_update.field3 = original.field3, | |
... | |
WHERE condition(ex: original.updated_at like '2020-02-09%'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment