TIMESTAMPDIFF(type,exp2,exp1)
type:year,month,day,HOUR,min,second等
例如:select TIMESTAMPDIFF(SECOND,'2012-10-1 2:0:0','2012-10-1 2:0:3')
结果:3.