Re: Trunc in Postgres

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Trunc in Postgres
Дата
Msg-id Pine.LNX.4.44.0309031555001.22896-100000@kix.fsv.cvut.cz
обсуждение исходный текст
Ответ на Trunc in Postgres  ("Amin Schoeib" <aschoeib@4tek.de>)
Список pgsql-general
You can try

select CAST(cast('0000000000000000000000004' as NUMERIC(20)) AS varchar);

Pavel
>
> 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
>
>


В списке pgsql-general по дате отправления:

Предыдущее
От: Paul Thomas
Дата:
Сообщение: Re: Tomcat Connection Pool?
Следующее
От: "Amin Schoeib"
Дата:
Сообщение: Re: Localization (for dates) Oracle vs. Postgresql