Re: copy command - date - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: copy command - date
Date
Msg-id 46BFEA96.6050408@wildenhain.de
Whole thread Raw
In response to Re: copy command - date  (novice <user.postgresql@gmail.com>)
List pgsql-general
novice schrieb:
> I resolved it by doing this - is there another more efficient method?
> And yes, the text file I am working with doesn't have any TABs
>
> 5162   OK           SM 06/12/04 06:12
>
> substr("data", 30, 2)||'-'||substr("data", 27,
> 2)||'-20'||substr("data", 24, 2)||substr("data", 32, 6) as
> inspection_date

You could try to_date() - see:

http://www.postgresql.org/docs/8.2/static/functions-formatting.html

Regards
Tino

pgsql-general by date:

Previous
From: Naz Gassiep
Date:
Subject: Persistent connections in PHP
Next
From: Naz Gassiep
Date:
Subject: Re: TimestampTZ