查找时间区间

2020-03-03  本文已影响0人  Spidd

例子 一辆车 多次使用 如何安排 时间不会重复;

select *
from TBOP_PCDJ t
where(t.YCKSSJ<=to_date('2020-03-05 17:38:15','yyyy/MM/dd hh24:mi:ss')
and t.YCKSSJ >=to_date('2020-03-04 17:28:15','yyyy/MM/dd hh24:mi:ss')
and t.TO_ROW_GUID = '{d89e9cc8-0e8b-4f58-9334-5d2f83afbd41}')
or (t.YCJSSJ<=to_date('2020-03-05 17:38:15','yyyy/MM/dd hh24:mi:ss')
and t.YCJSSJ >=to_date('2020-03-04 17:28:15','yyyy/MM/dd hh24:mi:ss')
and t.TO_ROW_GUID = '{d89e9cc8-0e8b-4f58-9334-5d2f83afbd41}')

上一篇 下一篇

猜你喜欢

热点阅读