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
应该这样做。