Re: import data from openoffice Calc - Mailing list pgsql-general

From Adrian Klaver
Subject Re: import data from openoffice Calc
Date
Msg-id 602571259.8519001259710723635.JavaMail.root@sz0030a.emeryville.ca.mail.comcast.net
Whole thread Raw
In response to import data from openoffice Calc  (Le-shin Wu <leshin@gmail.com>)
Responses Re: import data from openoffice Calc  (Le-shin Wu <leshin@gmail.com>)
List pgsql-general
----- "Le-shin Wu" <leshin@gmail.com> wrote:

> Hi Adrian,
>
> Thanks for your information. I think your suggestion will be my last
> approach, if I really can not find a way to solve my problem.
> Actually, I tried to format the cells type (the "date" column in my
> sheet) in Calc as "Date" before I copy and past, but somehow it works
> for only once. This also confused me. Thanks again.
>
> LW
>

Once the column is formatted as "Date" the underlying value will be the integer value. I did a little test and found
thefollowing. If I preformatted a column as "Text" and then entered date strings for example "12/01/09" it stayed a
stringwhen cut and pasted. If I just started entering a date string in a column the column would become a "Date"
column.Changing the formatting to "Text" would change the date strings "12/01/09" to the underlying integer 40147. Any
newdate strings entered however would stay as "12/01/09". Hope this helps. 


Adrian Klaver
aklaver@comcast.net

pgsql-general by date:

Previous
From: Howard Cole
Date:
Subject: Re: Unexpected EOF on client connection
Next
From: "Bret"
Date:
Subject: Re: optimizing advice