sql="select * from byelaw_report_print where sourcepath='172.16.8.213' and channelcode='HNTV-5' AND (starttime>=to_date('2006-4-27 06:30:00','YYYY-MM-DD HH24:MI:SS')) and (starttime<=to_date('2006-4-27 07:30:00','YYYY-MM-DD HH24:MI:SS')) or (starttime>=to_date('2006-4-27 09:30:00','YYYY-MM-DD HH24:MI:SS')) and (starttime<=to_date('2006-4-27 12:30:00','YYYY-MM-DD HH24:MI:SS')) or (starttime>=to_date('2006-4-27 18:30:00','YYYY-MM-DD HH24:MI:SS')) and (starttime<=to_date('2006-4-27 20:30:00','YYYY-MM-DD HH24:MI:SS')) and description_id='3'"