Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
結果に「2013-10-14」が含まれないのはなぜですか
select * from table t where t.f_date between to_date('2013-10-20', 'yyyy-mm-dd') and to_date('2013-10-14', 'yyyy-mm-dd')
d.f_date には時間コンポーネントが含まれていますか? その場合、 によって返されるレコードはbetween、時間が正確に00:00:00 のレコードのみになります。他のすべては 2013-10-14 より大きくなります。
between
日付を比較する場合、時刻コンポーネントのない日付は、00:00:00 時刻コンポーネントがあると見なされます。