mysql Adicionar dias até o momento
UPDATE classes
SET `date` = DATE_ADD(`date`, INTERVAL 2 DAY)
WHERE id = 161
Gifted Gaur
UPDATE classes
SET `date` = DATE_ADD(`date`, INTERVAL 2 DAY)
WHERE id = 161
Syntax:
DATE_ADD(date, INTERVAL value addunit)
Example:
SELECT DATE_ADD("2017-11-22", INTERVAL 3 YEAR);
Output:
2020-11-22
UPDATE classes
SET `date` = DATE_ADD(`date` , INTERVAL 2 DAY)
WHERE `id` = 161;