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.
正確な日から正確な日までのすべてのレコードを選択する必要があります。たとえば、TIMESTAMP タイプの 2013-03-05 0:00 から 2013-03-20 0:00 まで
これ?
SELECT * FROM table WHERE date1 => '2013-03-05 0:00' AND date2 <= '2013-03-20 0:00'
これを試してみてください。between関数も使用できます
between
select * from table where date_column between '2013-01-10 00:00:00' and '2013-06-12 00:00:00'