formating a select from a timestamp column

Поиск
Список
Период
Сортировка
От stig erikson
Тема formating a select from a timestamp column
Дата
Msg-id dl74of$2b3o$1@news.hub.org
обсуждение исходный текст
Ответы Re: formating a select from a timestamp column  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: formating a select from a timestamp column  (Bruno Wolff III <bruno@wolff.to>)
Re: formating a select from a timestamp column  (Keith Worthington <KeithW@NarrowPathInc.com>)
Список pgsql-novice
hi i have a column that is declared as:
datum timestamp DEFAULT ('now'::text)::timestamp(6) with time zone


then i do:
SELECT datum from table;
and get something like: 2005-11-13 00:00:00

i would like the output to be on the format: 2005-11-13
how can i change it?

i use postgresql 8.1

thanks
stig

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

Предыдущее
От: Emiliano Amilcarelli
Дата:
Сообщение: Loop through records
Следующее
От: cjobbers@optonline.net
Дата:
Сообщение: Logging