| From: | Vinayak Pokale <vinpokale(at)gmail(dot)com> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: PGSQL 9.3.2 COPY command issues |
| Date: | 2014-07-18 09:27:37 |
| Message-ID: | 1405675657671-5811942.post@n5.nabble.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David G Johnston | 2014-07-18 12:15:07 | Re: PGSQL 9.3.2 COPY command issues |
| Previous Message | Albe Laurenz | 2014-07-18 09:09:02 | Re: PGSQL 9.3.2 COPY command issues |