【发布时间】:2016-02-26 02:17:45
【问题描述】:
我在 Postgresql 中查找,我想在我的查询中删除 +9 UTC 值。
例如:在to_timestamp列中,我想去掉+09,只保留2016-02-26 00:23:44的值。
这是我的查询:
select t,to_timestamp(v) from c1.hour where f = 22 and date_trunc('day',t - '1 hour'::INTERVAL) = '2016-02-26 00:00:00' order by t ;
我能得到一些帮助吗?
【问题讨论】:
-
首先提供您的表定义 - 数据类型对您的问题至关重要。并且永远不要将代码作为图像发布。为此,我们非常喜欢 text。
标签: sql postgresql postgresql-9.1