Re: How to truncate? integers

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to truncate? integers
Date: 2011-11-16 21:35:52
Message-ID: 20111116223552.5b2213c2@anubis.defcon1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, 16 Nov 2011 21:26:19 +0100
Johann Schatzer <schatzer(dot)johann(at)gmail(dot)com> wrote:

SELECT trunc(4770, -2);
trunc
-------
4700
(1 ligne)

> How can I ~truncate~ integers?
>
>
> this column
>
> 4770
> should give
>
> 4700

--
Q: How do you tell if an Elephant has been making love in your backyard?
A: If all your trashcan liners are missing ...

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Yangyang 2011-11-17 02:21:48 How can I show more potential query plans, other than the default one?
Previous Message Leif Biberg Kristensen 2011-11-16 21:30:10 Re: How to truncate? integers