mysql datediff

SELECT DATEDIFF('2008-12-30','2008-12-29') AS DiffDate

用前面的减掉后面的,结果1.

refurl:http://www.w3school.com.cn/sql/func_datediff_mysql.asp

猜你喜欢

转载自wandejun1012.iteye.com/blog/2105304