Re: How to cast as numeric

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: How to cast as numeric
Дата
Msg-id 20021106180406.GB14903@wolff.to
обсуждение исходный текст
Ответ на How to cast as numeric  (Savita <savita@india.hp.com>)
Список pgsql-general
On Wed, Nov 06, 2002 at 18:21:08 +0530,
  Savita <savita@india.hp.com> wrote:
> Hi ,
>
> I would like to know how to cast as numeric.For examlple
>
> I can use cast as
>
> cast(to_number(substring(os_crm_exchange_call_id, 4), 999999999999)  as
> smallint)

::numeric

numeric has 2 option paramters that allow you to limit the precision
and specify a scale. The default is to not limit precision.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Formatting psql output
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Synchronising/mirroring databases