首页 > 代码库 > DATE_DIFF()

DATE_DIFF()

DATE_DIFF() 用于计算两个日期之间的间隔天数

mysql> SELECT DATEDIFF(2017-12-31, 2010-12-31);+--------------------------------------+| DATEDIFF(2017-12-31, 2010-12-31) |+--------------------------------------+|                                 2557 |+--------------------------------------+

 

 

 

 

    

DATE_DIFF()