date_add sql code example
Example 1: mysql add days to date
UPDATE classes
SET `date` = DATE_ADD(`date`, INTERVAL 2 DAY)
WHERE id = 161
Example 2: datetime add 2 hours sql
DATEADD(HOUR, 2, GETUTCDATE())
Example 3: mysql add days to date
UPDATE classes
SET `date` = DATE_ADD(`date` , INTERVAL 2 DAY)
WHERE `id` = 161;