Re: Esay question, about the numeric format

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Esay question, about the numeric format
Дата
Msg-id 20070301011952.GA5007@wolff.to
обсуждение исходный текст
Ответ на Esay question, about the numeric format  ("Rafa Comino" <rafacomino@gmail.com>)
Список pgsql-general
On Thu, Feb 22, 2007 at 12:20:12 +0100,
  Rafa Comino <rafacomino@gmail.com> wrote:
> Hi every body
> I have this query
> SELECT 20.00::numeric(38,2)
> and postgre gives me 20, i need that postgre gives me 20.00
> What can i do? i suppose this must be easy, but i dont find how to do ir
> thanks every body

If the exact output format matters, you should probably use to_char to convert
the number to a string.

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

Предыдущее
От: Naz Gassiep
Дата:
Сообщение: Re: Select retrieval slowdown after db drop/reload. Suggestions?
Следующее
От: Shaun Johnston
Дата:
Сообщение: Assistance with Query Optimisation?