Fetching as Date from a String

Поиск
Список
Период
Сортировка
От Thirumoorthy Bhuvneswari
Тема Fetching as Date from a String
Дата
Msg-id 20021017042238.76610.qmail@web13608.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Fetching as Date from a String
Список pgsql-general
hi,
I am using Postgresql-7.1 with RedHat Linux-7.1 and
JDK-1.3.1. I am having a table named 'inv_table' with
a field 'inv_date' of datatype 'varchar'. But, the
field contains the records in the format
'05-10-02(dd-MM-yy)'. I created a view to take the
field like:
'select inv_date::text::date from inv_table'. It
fetches the date field in the format
'2002-05-10(yyyy-MM-dd)'. ie, 'dd' part of the string
is taken as the 'MM' here and vice versa. But, this
fetching works fine for dates above '12-10-2002'.
Is there a way to specify the format of the string in
the 'Select' query itself. Please help me. thanks.

bhuvana.

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Has anyone seen this SPARC bug? [Fwd: Bug#165060: postgresql: int8 value out of range on sparc]
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Fetching as Date from a String