小编gen*_*bee的帖子

PostgreSQL:日期/时间字段值超出范围

软件:

Linux cjz-eshop1-p 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
psql (PostgreSQL) 12.3 (Ubuntu 12.3-1.pgdg18.04+1)
Run Code Online (Sandbox Code Playgroud)

由于将 CSV 导入我的服务器上的数据库,我收到错误。

ERROR: current transaction is aborted, commands ignored until end of transaction block
Price 244385 ERROR: date/time field value out of range: "30.06.2020"
  Hint: Perhaps you need a different "datestyle" setting.
  Position: 160
ERROR: current transaction is aborted, commands ignored until end of transaction block
Price 244386 ERROR: date/time field value out of range: "30.06.2020"
  Hint: Perhaps …
Run Code Online (Sandbox Code Playgroud)

postgresql import date-format csv

2
推荐指数
1
解决办法
5万
查看次数

标签 统计

csv ×1

date-format ×1

import ×1

postgresql ×1