numeric formats in SELECT

Started by javier garcia - CEBASalmost 23 years ago2 messagesgeneral
Jump to latest
#1javier garcia - CEBAS
rn001@cebas.csic.es

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

#2scott.marlowe
scott.marlowe@ihs.com
In reply to: javier garcia - CEBAS (#1)
Re: numeric formats in SELECT

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;