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

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 (view raw or flat)
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

pgsql-novice by date

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

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