Re: numeric formats in SELECT

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: javier garcia - CEBAS <rn001(at)cebas(dot)csic(dot)es>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: numeric formats in SELECT
Date: 2003-07-01 12:48:34
Message-ID: Pine.LNX.4.33.0307010648120.16127-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-07-01 12:50:36 Re: Cannot create unique index
Previous Message scott.marlowe 2003-07-01 12:39:59 Re: 2 different versions of postgres on the same system