select * from ERP_Support_date esd
where esd.support_start_date between to_date('2013-03-01 18:30:00','yyyy-MM-dd hh24:mi:ss')
and to_date('2013-03-01 19:00:00','yyyy-MM-dd hh24:mi:ss')
or esd.support_end_date between to_date('2013-03-01 18:30:00','yyyy-MM-dd hh24:mi:ss')
and to_date('2013-03-01 19:00:00','yyyy-MM-dd hh24:mi:ss')查询'2013-03-01 18:30:00' -'2013-03-01 19:00:00' 包含这半小时时间段的所以时间
本文介绍了一种使用SQL查询特定时间范围内数据的方法。通过精确指定开始时间和结束时间,可以有效地检索出符合要求的数据记录。
949

被折叠的 条评论
为什么被折叠?



