TIMESTAMPDIFF function calculates the number of days difference

mysql database statement

SELECT TIMESTAMPDIFF( DAY, '1995-02-11 08:15:12','2019-07-29 12:18:20') Day

Of course, you can also calculate the difference in the time difference, we just need to change the parameters of the function

Guess you like

Origin www.cnblogs.com/jindongg/p/11265315.html