dbTalk Databases Forums  

DATE Error: COPY

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss DATE Error: COPY in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kumar S
 
Posts: n/a

Default DATE Error: COPY - 09-22-2004 , 01:01 PM






Dear group,
I am using COPY for mass upload of my data.
I created a table with one coulmn as

Create table xxxx
(
.....................,
.....................,
fc_date_annotation DATE,
.....................,
.....................
),


In my data :

The Date_annotation column has date in the following
format:

23-Jun-04.

When I copy my data I get the following error:

Array2=> Copy <table> from '../../file';

ERROR: invalid input syntax for type date: "GeneChip
Array"
CONTEXT: COPY affy_hg_focus, line 1, column
fc_annotation_date: "GeneChip Array"


The date format in my data file is POSTGRES- EUROPEAN

I reset my settings to match postgres style:

array2=> set datestyle to 'POSTGRES,European';
SET
marray2=> Show datestyle;
DateStyle
---------------
Postgres, DMY
(1 row)

Could any one please suggest what should be done in
this case.

Thanks

-Kumar



__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.