Home > Database > Mysql Tutorial > body text

How to increase the current time of mysql by 5 minutes

藏色散人
Release: 2020-10-30 16:54:39
Original
4271 people have browsed it

In mysql, you can increase the current time through the statement "DATE_FORMAT(ADDDATE(NOW(), INTERVAL 5 MINUTE),'%Y-%m-%d %H:%i:%s')" 5 minutes.

How to increase the current time of mysql by 5 minutes

Recommendation: "mysql video tutorial"

mysql Add 5 minutes to the current date

DATE_FORMAT(ADDDATE(NOW(), INTERVAL 5 MINUTE),’%Y-%m-%d %H:%i:%s’)
Copy after login

5 is the minutes to be added

The above is the detailed content of How to increase the current time of mysql by 5 minutes. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template