Home  >  Article  >  Database  >  How to increase the current time of mysql by 5 minutes

How to increase the current time of mysql by 5 minutes

藏色散人
藏色散人Original
2020-10-28 09:12:214214browse

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’)

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!

Statement:
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