sử dụng:
select * from tbl_name where Attribute_name between 'yyyy-mm-dd' and 'yyyy-mm-dd';
ở đây Attribute_name là date_time
tên cột
ví dụ:
select * from tbl_node where mydate between '2014-02-02' and '2014-02-06';
1|1|123|456|12eb-ab|1|1|254|123|19|2014-02-03 16:00:44
2|1|123|456|12eb-ab|1|1|254|123|19|2014-02-03 16:01:03
3|1|123|456|12eb-ab|1|1|254|123|19|2014-02-03 16:00:57