在我的桌子上我有这个
start_date end_date record_id
2012-10-05 2012-11-05 1
2012-10-06 2012-12-05 2
2012-10-05 2012-09-05 3
2012-11-05 2012-11-30 4
2012-09-05 2012-11-21 5
2012-10-05 2012-11-22 6
如果今天的日期是2010-10-05
我想选择范围内的所有记录,即今天或更早开始并且尚未达到 end_date
所以在这种情况下
2012-10-05 2012-11-05 1
2012-10-06 2012-12-05 2
2012-09-05 2012-11-21 5 // doesnt't end till 2012-11-21
2012-09-05 2012-11-22 6 // doesnt't end till 2012-11-22