Re: copy command - date

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: copy command - date
Дата
Msg-id 46BFEA96.6050408@wildenhain.de
обсуждение исходный текст
Ответ на Re: copy command - date  (novice <user.postgresql@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Naz Gassiep
Дата:
Сообщение: Persistent connections in PHP
Следующее
От: Naz Gassiep
Дата:
Сообщение: Re: TimestampTZ