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.
タイムスタンプ付きのデータを記録している場合。今日のデータを照会するにはどうすればよいですか? この例に似たもの。
SELECT * FROM table WHERE recorded_time = current_date;
ありがとう
DATE_TRUNC('day', recorded_time) = CURRENT_DATE
するべきです。