主要用到函数:DATE_SUB(NOW(),INTERVAL 0 HOUR)
select t.`status` ,t.id,t.create_time,
DATE_SUB(NOW(),INTERVAL 0 HOUR),
DATE_SUB(NOW(),INTERVAL 2 HOUR)
from eemp_track t
t.create_time >= DATE_SUB(NOW(),INTERVAL 2 HOUR)
and
t.create_time <= DATE_SUB(NOW(),INTERVAL 0 HOUR)
```t