Created
December 4, 2012 21:39
-
-
Save mythmon/4209016 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 feedback_opinion SET created=date_add(created, interval 6 month) WHERE month(created) < 7 and year(created) = 2012; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Database changed
mysql> UPDATE feedback_opinion SET created=date_add(created, interval 6 month) WHERE month(created) < 7 and year(created) = 2012;
Query OK, 228132 rows affected (13.76 sec)
Rows matched: 228132 Changed: 228132 Warnings: 0
mysql> select created from feedback_opinion where month(created) < 7 and year(created) = 2012;
Empty set (0.85 sec)