bitsCN.com #计算两个时间的间隔 #计算间隔天数 select TIMESTAMPDIFF(day,'2014-06-01',date(now())) #计算间隔月数 select TIMESTAMPDIFF(month,'2014-01-01',date(now())) #计算间隔年数select TIMESTAMPDIFF(year,'2010-01-01',date(now())) bitsCN.com