How to add a day to the date in MySQL?


To add 1 day, use date_add() function. Adding a day to datetime in MySQL gives the next day. The following is the syntax −

SELECT DATE_ADD('Any date’', INTERVAL 1 DAY) AS AliasName;

Now, I am applying the above query to add a day with date in MySQL. The query is as follows −

mysql> SELECT DATE_ADD('2018-10-08', INTERVAL 1 DAY) AS NextDay;

After executing the above query, we will get the following output −

+------------+
| NextDay    |
+------------+
| 2018-10-09 |
+------------+
1 row in set (0.00 sec)

Therefore, in this sample output, I am adding a day with current date

Updated on: 25-Jun-2020

310 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements