Re: Insert into:Bad date external representation - Mailing list pgsql-sql

From Michael Glaesemann
Subject Re: Insert into:Bad date external representation
Date
Msg-id 08D26BD2-466B-11D8-8BB3-000A95C88220@myrealbox.com
Whole thread Raw
In response to Re: Insert into:Bad date external representation  (azwa@nc.com.my)
List pgsql-sql
On Jan 14, 2004, at 4:39 PM, azwa@nc.com.my wrote:
>  got an error as below :
>
>    dwnc=> insert into biosadm.custdo_dim
> dwnc->  (do_key,do_no,do_date,attnto,custlo)
> dwnc->  select nextval('cdo_seq'),c.dono::varchar,c.dodate::date,
> dwnc-> c.attnto, c.custlo  from custdo_temp c;
> ERROR:  Bad date external representation ''
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here's your clue right here: It means the dodate text field in 
custdo_temp contains data that does not represent a valid date. Check 
to make sure custdo_temp.dodate is all properly formatted.

HTH

Michael Glaesemann
grzm myrealbox com



pgsql-sql by date:

Previous
From: azwa@nc.com.my
Date:
Subject: Re: Insert into:Bad date external representation
Next
From: "Luis C. Ferreira (aka lcf)"
Date:
Subject: Re: Transpose rows to columns