17,141
社区成员




with
s1 as (select * from CAR_STATE_107 where car_id=54 and rownum=1 and car_date>=to_date('2012-8-13 20:40:04','yyyy-MM-dd hh24:mi:ss') order by car_date),
s2 as (select * from CAR_STATE_107 where car_id=54 and rownum=1 and car_date<=to_date('2012-8-13 20:40:04','yyyy-MM-dd hh24:mi:ss') order by car_date desc)
select * from s1 union all select * from s2