Importing .csv with timestamp column (dd.mm.yyyy hh.mm.ss) using psql \copy

后端 未结 3 503
天涯浪人
天涯浪人 2020-12-03 18:17

I\'m trying to import data from a .csv file into a postgresql 9.2 database using the psql \\COPY command (not the SQL COPY).

The input .csv file contains

3条回答
  •  爱一瞬间的悲伤
    2020-12-03 19:01

    The date style you seem to be using is German. PostgreSQL supports this date style. Try using this:

    SET datestyle TO German;
    

提交回复
热议问题