ItSolutionStuff.com

How to add 1 day to the date column in MySQL?

By Hardik Savani • February 16, 2021
MySql

In this example, i will show you mysql add 1 day to timestamp. step by step explain how to add days in date in mysql. i explained simply about how to add 7 days to current date in mysql. This tutorial will give you simple example of mysql add day to date.

I will give you simple query to getting add 1 day to created_at column using mysql function. let's see example here:

Query:

SELECT

id,

name,

created_at,

DATE_ADD(created_at, INTERVAL 1 DAY) AS later_date

FROM users

Output:

I hope it can help you...

Tags: MySql
Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

PHP MySQL Image Gallery CRUD Example

Read Now →

Laravel Join Query with Comma Separated Column Example

Read Now →

How to Connect MySQL Database in Node JS?

Read Now →

Laravel Where Clause with MySQL Function Example

Read Now →

How to fetch this week records in MySql ?

Read Now →

How to Check Empty or Null Data using MySQL Query?

Read Now →

How to Copy One Table Data into Another Table using MySQL?

Read Now →

Mysql procedure with pagination in laravel?

Read Now →

Which MySQL Datatype use for Store an IP Address?

Read Now →

Mysql Hexadecimal Color Code Store in Binary Datatype Example

Read Now →