小编Lee*_*rma的帖子

如何使用Postgres选择24小时前的记录?

我正在使用这个查询 select * from table_nm where table_nm_date > NOW() - INTERVAL '24 hour'

但也给出今天的记录。请帮我。

Output : "2016-03-20 19:31:11.896159",
         "2016-03-21 08:24:58.223245",
         "2016-03-21 09:13:59.768953",
         "2016-03-21 09:51:25.161428",
         "2016-03-21 11:35:07.378706"
Run Code Online (Sandbox Code Playgroud)

我只想要2016-03-20的数据。

postgresql

1
推荐指数
1
解决办法
1727
查看次数

标签 统计

postgresql ×1