Обсуждение: numeric formats in SELECT

Поиск
Список
Период
Сортировка

numeric formats in SELECT

От
javier garcia - CEBAS
Дата:
Hi all;
I've got a table with real type data. And, in the SELECT, some of the columns
are displayed in scientific format. I don't like this, and I would prefer
that the number were shown with two decimal digits.
Is this possible?


Best regards

Javier

Re: numeric formats in SELECT

От
"scott.marlowe"
Дата:
On Tue, 1 Jul 2003, javier garcia - CEBAS wrote:

> Hi all;
> I've got a table with real type data. And, in the SELECT, some of the columns
> are displayed in scientific format. I don't like this, and I would prefer
> that the number were shown with two decimal digits.
> Is this possible?

Does something like this work?:

select realcolumn::numeric(10,2) from table;