Re: PGSQL 9.3.2 COPY command issues - Mailing list pgsql-novice

From Vinayak Pokale
Subject Re: PGSQL 9.3.2 COPY command issues
Date
Msg-id 1405675657671-5811942.post@n5.nabble.com
Whole thread Raw
In response to PGSQL 9.3.2 COPY command issues  (spake@surewest.net)
List pgsql-novice
Hello,
I think the in numeric column you have inserted text data.So if your column
value is numeric and suppose it is 1 then use 1 instead of "1".
one more thing dont use delimiter after last column value in csv file.

example:
postgres=# create table abc (a varchar(10),b numeric);
CREATE TABLE
/home/aa.csv
"aaa",1

postgres=# COPY abc from '/home/aa.csv' DELIMITER ',';
COPY 1

Regards,
Vinayak



-----
Thanks and Regards,
Vinayak Pokale,
NTT DATA OSS Center Pune, India
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/PGSQL-9-3-2-COPY-command-issues-tp5811940p5811942.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.


pgsql-novice by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: PGSQL 9.3.2 COPY command issues
Next
From: David G Johnston
Date:
Subject: Re: PGSQL 9.3.2 COPY command issues