Re: Interval Precision

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Interval Precision
Дата
Msg-id 20050408192148.GA8986@wolff.to
обсуждение исходный текст
Ответ на Interval Precision  (Jake Stride <nsuk@users.sourceforge.net>)
Ответы Re: Interval Precision  (Jake Stride <nsuk@users.sourceforge.net>)
Список pgsql-novice
On Fri, Apr 08, 2005 at 19:52:00 +0100,
  Jake Stride <nsuk@users.sourceforge.net> wrote:
> Hi,
>
> I'm trying to force the precision on an interval so that I can store
> hours and minutes and then when I do a select just see the hours and
> minutes. i.e.:
>
> 01:00 instead of 01:00:00
>
> is the possible as no matter what I set the precision to I always get
> the extra seconds. Is this possible?

You can use the to_char function to format the output.

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

Предыдущее
От: Jake Stride
Дата:
Сообщение: Interval Precision
Следующее
От: Jake Stride
Дата:
Сообщение: Re: Interval Precision