Re: Getting time from date field

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Getting time from date field
Дата
Msg-id 20031106013453.GB26471@dcc.uchile.cl
обсуждение исходный текст
Ответ на Getting time from date field  (Alejandro Javier Pomeraniec <apomeraniec@buenosaires.gov.ar>)
Список pgsql-general
On Wed, Nov 05, 2003 at 05:12:12PM +0000, Alejandro Javier Pomeraniec wrote:

> Is there any way to get the time like the following example ?
>
> '2003-05-11 15:21:21'
>
> should return
>
> '15:21:21'

Cast it to time:

regression=# SELECT '2003-05-11 15:21:21'::time;
   time
----------
 15:21:21
(1 fila)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No necesitamos banderas
No reconocemos fronteras"                  (Jorge González)

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: tsearch2 and gist index bloat
Следующее
От: ljb
Дата:
Сообщение: Re: pgtcl patch, lost messages? / was: PostgreSQL v7.4 Release Candidate 1