Skip site navigation (1) Skip section navigation (2)

1.2e+02 -> 120

From: Przemyslaw Bak <przemol(at)st3(dot)makro(dot)com(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: 1.2e+02 -> 120
Date: 1998-09-10 17:47:56
Message-ID: Pine.SV4.3.96.980910194316.13833A-100000@STORE3 (view raw or flat)
Thread:
Lists: pgsql-general
Hi,

I have query:
select sum(total_sales)
from sales;

After I run the query it prints:

sum
-----------
1.2e+03
(1 row)

How can I force postgres to display it as

sum
-----------
1200
(1 row)



przemol


pgsql-general by date

Next:From: Chris JohnsonDate: 1998-09-10 18:19:48
Subject: Re: [GENERAL] PQgetvalue weirdness
Previous:From: Simon DrabbleDate: 1998-09-10 16:54:34
Subject: PQgetvalue weirdness

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group