Created
June 18, 2020 15:58
-
-
Save zerobugs-oficial/73818d3cf16a14d2bf5e7f949cfdc7e4 to your computer and use it in GitHub Desktop.
MySQL: Somar número de dias, meses ou anos a uma data - 2
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 tabela | |
SET coluna_data = ADDDATE(coluna_data, INTERVAL 12 YEAR) | |
WHERE id = 15 | |
SELECT ADDDATE(coluna_data, INTERVAL 12 DAY) | |
FROM tabela |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment