mysql获取两个日期之间相差几天

select TIMESTAMPDIFF(DAY,begindate,enddate)+1 from table1

posted @ 2016-08-26 22:05  魔豆  阅读(200)  评论(0)    收藏  举报