小编fal*_*lcs的帖子

PostgresSQL 日期/时间字段在自纪元以来的秒数范围内超出范围

我正在将 csv 文件导入 PostgreSQL 数据库。大多数文件导入没有任何问题,直到我收到此消息

ERROR:  date/time field value out of range: "1421088300"
HINT:  Perhaps you need a different "datestyle" setting.
CONTEXT:  COPY accidents, line 6356158, column datetime: "1421088300"
Run Code Online (Sandbox Code Playgroud)

但这似乎是 01/12/2015 @ 6:45pm (UTC) 根据https://www.unixtimestamp.com/index.php的有效时间戳

那么为什么会超出范围呢?

postgresql timestamp datetime postgresql-9.5

6
推荐指数
1
解决办法
7万
查看次数

标签 统计

datetime ×1

postgresql ×1

postgresql-9.5 ×1

timestamp ×1