【发布时间】:2021-09-22 21:20:24
【问题描述】:
我有一个类型为 nullable timestamp without time zone 的列。它以这种格式存储在我的 Postgres 数据库中:2021-06-24 11:00:00。我想将其转换为可空的timestamp with time zone 类型,以便显示为2021-06-24 11:00:00.000-00。请注意,没有时区转换。
该解决方案还应该允许从timestamp with time zone 转换为timestamp without time zone。我做了一些研究,但没有找到任何东西。
【问题讨论】:
标签: sql postgresql timestamp timestamp-with-timezone