![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
Advertisements