查询离指定日期最近的一条数据(oracle)
select * from
(
Select * from t_currency_rate
where f_orig_curr='USD'
and f_dest_curr='RMB'
Order by abs(f_date-sysdate)
) a
where rownum=1
(
Select * from t_currency_rate
where f_orig_curr='USD'
and f_dest_curr='RMB'
Order by abs(f_date-sysdate)
) a
where rownum=1