This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3289|Reply: 0

[Source] MySQL current time plus day and timestamp

[Copy link]
Posted on 2/9/2024 10:31:10 AM | | | |
MySQL gets the current database server timestamp with the following command:



MySQL adds the current time by one day via the built-in function, the command is as follows:



Among them, the NOW() function is used to obtain the current time, INTERVAL 1 DAY means to increase the time by one day, and the DATE_ADD() function adds up the two parameters and returns the calculated time.



If you want to convert the increased time to a timestamp, the command is as follows:

(End)




Previous:Newtonsoft.Json deserializes string strings to remove spaces
Next:C# 9.0 New syntax attributes and logic patterns improve the aesthetics of if statements
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com