Re: Trunc in Postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trunc in Postgres
Дата
Msg-id 13902.1062599537@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trunc in Postgres  ("Amin Schoeib" <aschoeib@4tek.de>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Trunc in Postgres
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: What is the good equivalent for ENUM ?