Re: Help with postgres functions

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: Help with postgres functions
Дата
Msg-id 20010420092852.A21932@ara.zf.jcu.cz
обсуждение исходный текст
Ответ на Help with postgres functions  (Fabio Alberto Sobral <sobral@lncc.br>)
Список pgsql-admin
On Thu, Apr 19, 2001 at 10:04:42AM -0300, Fabio Alberto Sobral wrote:
> Dear Sirs,
>
>    I have a timestamp atribute in my table and I want to get only the date of
> this atribute. How can I do this? Does the extract or date_part functions
> resolve my problem?

Cast timestampt to date:

        myAttr::date
or
        CAST(myAttr as date)


                                Karel

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

Предыдущее
От: "Jacopo Silva"
Дата:
Сообщение: Re: Bugs in PostgreSQL v7.1 rpms for RedHat
Следующее
От: tankgirl@worldonline.es
Дата:
Сообщение: System Catalogs