gpt4 book ai didi

sql - BC 日期在 postgreSQL 中是什么意思?

转载 作者:行者123 更新时间:2023-11-29 12:04:57 26 4
gpt4 key购买 nike

在我的数据库表中,我有一列 timestamp without time zone 类型。行包含以下值:

         end_date
---------------------------
timestamp without time zone

2774-04-18 22:59:49.88 BC
2015-04-07 06:06:21.738
2015-04-02 12:37:15.161
2015-03-26 15:58:45.864
2015-04-09 15:34:41.399

就 BC 而言,意思是在基督之前。如何将 BC 转换为非 BC 时间戳?我很困惑 end_date > now()2774-04-18 22:59:49.88 BC 上失败了。为什么?

最佳答案

这意味着 基督之前 - postgresql 中 timestamp 的限制是:

  • 低:公元前 4713 年
  • 高:公元 294276

只是为了显示规模:埃及金字塔建于公元前 2500 年左右。

date 类型更接近 future - 面向 future ? see here for date types .

关于sql - BC 日期在 postgreSQL 中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29434748/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com