From: | dhaval jaiswal <dhavallj(at)hotmail(dot)com> |
---|---|
To: | <w_ward_w(at)hotmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Error while importing CSV file |
Date: | 2012-02-06 05:20:39 |
Message-ID: | SNT117-W46B0759D0B893261D3953DF740@phx.gbl |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Is this ERROR thrown for all the rows ?
Try the following.
select max(length(column_name)) from table_name;
It seems that some value is bigger than the define size.
> Date: Sun, 5 Feb 2012 21:14:40 -0800
> From: w_ward_w(at)hotmail(dot)com
> To: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] Error while importing CSV file
>
> OK that problem solved
> Thanks so much
>
> but I had another problem
>
> *ERROR: value too long for type character varying(100)*
>
> although in the original file it was varying(25) only !!
>
> --
> View this message in context: http://postgresql.1045698.n5.nabble.com/Error-while-importing-CSV-file-tp5458103p5459345.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-02-06 05:46:50 | Re: sql query bug??? |
Previous Message | Lockas | 2012-02-06 05:14:40 | Re: Error while importing CSV file |