Re: Casting timestamp with time zone to varchar automatically

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Casting timestamp with time zone to varchar automatically
Дата
Msg-id 66A83ED2-E51A-11D8-8966-000A95C88220@myrealbox.com
обсуждение исходный текст
Ответ на Casting timestamp with time zone to varchar automatically  ("Jim C. Nasby" <decibel@decibel.org>)
Ответы Re: Casting timestamp with time zone to varchar automatically
Список pgsql-general
On Aug 3, 2004, at 3:12 PM, Jim C. Nasby wrote:

> Is there any reason why there isn't a predefined cast to go from a
> timestamp to a varchar? Is there a reason not to add one?

to_char should do what you need. People often need a specific form of
timestamp if they need it to be a text value (rather than a native
timestamp data type). to_char provides lots of flexibility


Michael Glaesemann
grzm myrealbox com


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