一、TIMESTAMPDIFF
Support days, hours and seconds
selet TIMESTAMPDIFF(hour,odl_time,now());
Old_time calculated time difference between the current and hours.
二、DATEDIFF
select datediff(now(),old_time);
一、TIMESTAMPDIFF
Support days, hours and seconds
selet TIMESTAMPDIFF(hour,odl_time,now());
Old_time calculated time difference between the current and hours.
二、DATEDIFF
select datediff(now(),old_time);