#计算两个时间的间隔
#计算间隔天数
select TIMESTAMPDIFF(day,‘2014-06-01‘,date(now()))
#计算间隔月数
select TIMESTAMPDIFF(month,‘2014-01-01‘,date(now()))
#计算间隔年数
select TIMESTAMPDIFF(year,‘2010-01-01‘,date(now()))原文:http://blog.csdn.net/kevin_luan/article/details/34096659