Created
November 2, 2015 07:02
-
-
Save jawdatls/eca447a599159c9f7f59 to your computer and use it in GitHub Desktop.
mysql query to update only month in date
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 `tbl` | |
SET `date` = DATE_ADD(`date`, INTERVAL -1 MONTH) | |
WHERE MONTH(`date`) = 11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment