【发布时间】:2021-01-30 16:39:33
【问题描述】:
我有一张表,其中created_at 列为timestamp with time zone
我的数据库时区是“UTC”,所有时间都存储在 UTC
我有时间"2021-01-29 11:30 AM"时区America/New_York
现在我希望它使用来获取数据
SELECT "id",
"created_at"
FROM sampletable
WHERE created_at >= (my time at America/New_York)
ORDER BY id DESC
那么如何在 sql 中使用时区 America/New_York 的 "2021-01-29 11:30 AM" 来获取我的数据
【问题讨论】:
标签: postgresql