Re: Trunc in Postgres - Mailing list pgsql-general

From Jeff Eckermann
Subject Re: Trunc in Postgres
Date
Msg-id 20030903144434.61155.qmail@web20803.mail.yahoo.com
Whole thread Raw
In response to Trunc in Postgres  ("Amin Schoeib" <aschoeib@4tek.de>)
Responses Re: Trunc in Postgres
List pgsql-general
Look at the "trim" function.
While you are about it, looking over the other
available functions would be worth your while too
(look under "Functions and Operators" in the docs).

--- Amin Schoeib <aschoeib@4tek.de> wrote:
>
> Hi,
> Is there an equivalent for the trunc function of
> Oracle in Postgres???
> I need to trunc(the zeros) a number which is stored
> as a char with a lot of zeros
> Like that : 0000000000000000000000000000004
>
> In oracle you can make that by
> trunc(YOUR_COLUMNNAME,0)
>
> Thanxx
>
> Schoeib
>
> 4Tek Gesellschaft f�r angewandte
> Informationstechnologien mbH
> Schoeib Amin
> Tel.  +49 (0) 69 697688-132
> Fax. +49 (0) 69 697688-111
> http://www.4tek.de
>
>


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Recursive Selects
Next
From: Vivek Khera
Date:
Subject: Re: What is the good equivalent for ENUM ?