Need help doing a CSV import - Mailing list pgsql-novice

From DMan65
Subject Need help doing a CSV import
Date
Msg-id 29156720.post@talk.nabble.com
Whole thread Raw
Responses Re: Need help doing a CSV import
List pgsql-novice
I am in the process of moving a FoxPro based system to PostgreSQL.

We have several tables that have memo fields which contain carriage returns
and line feeds that I need to preserve. I thought if I converted these into
the appropriate \r and \n codes that they would be imported as carriage
returns and line feeds, but instead they are stored in the database as \r
and \n.

The command I am using is:

copy main.company
  from E'f:\company.csv"
  DELIMITER "|"
  CSV HEADER QUOTE '"' ESCAPE E'\\';

The command imports all of the data, but I want the escaped codes to be
expanded to their actual values.

Can anyone assist me with this?
--
View this message in context: http://old.nabble.com/Need-help-doing-a-CSV-import-tp29156720p29156720.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.


pgsql-novice by date:

Previous
From: Alan Hodgson
Date:
Subject: Re: SQL from Linux command line
Next
From: Siddharth Saha
Date:
Subject: [NOVIE] raise notice not working for nested function calls