I have a table in MySQL. What would be the sql statement look like to add say 2 days to the current date value in the table?
UPDATE classes SET date = date
Assuming your field is a date type (or similar):
date
SELECT DATE_ADD(`your_field_name`, INTERVAL 2 DAY) FROM `table_name`;
With the example you've provided it could look like this:
UPDATE classes SET `date` = DATE_ADD(`date` , INTERVAL 2 DAY) WHERE `id` = 161;
This approach works with datetime , too.
datetime