Re: [GENERAL] Q: How to convert int to date?

Поиск
Список
Период
Сортировка
От Marin D
Тема Re: [GENERAL] Q: How to convert int to date?
Дата
Msg-id Pine.LNX.3.96.980623135806.15145C-100000@server.iclub.techno-link.com
обсуждение исходный текст
Ответ на Q: How to convert int to date?  (Mattias Kregert <matti@algonet.se>)
Список pgsql-general

On Tue, 23 Jun 1998, Mattias Kregert wrote:

->How do I convert INTEGER to DATE in 6.3.2?
->
->I have a table 'mytbl' with a column 'd' which is
->an integer, containing dates in YYMMDD form. Now,


This is quite bad representation of date. U know Y2K, so on...


->how do I convert these integer dates to date dates?
->


I would propose to modify your table with DATE column, dump your old
table, write a script modifying the 980622 to 98-06-22 and import it back
in the new table

or write your own function dealing with such 'dates'

Best regards

    Marin


          -= Why do we need gates in a world without fences? =-



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

Предыдущее
От: Mattias Kregert
Дата:
Сообщение: Q: How to convert int to date?
Следующее
От: Bruce Tong
Дата:
Сообщение: Re: [ADMIN] User authetication failed.