Re: Trunc in Postgres - Mailing list pgsql-general

From Tom Lane
Subject Re: Trunc in Postgres
Date
Msg-id 13902.1062599537@sss.pgh.pa.us
Whole thread Raw
In response to Trunc in Postgres  ("Amin Schoeib" <aschoeib@4tek.de>)
List pgsql-general
"Amin Schoeib" <aschoeib@4tek.de> writes:
> 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)

We use the SQL-standard spelling, TRIM().

            regards, tom lane

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Trunc in Postgres
Next
From: Dennis Gearon
Date:
Subject: Re: What is the good equivalent for ENUM ?