Re: 'currency' question; precision/decimal meaing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 'currency' question; precision/decimal meaing
Дата
Msg-id 9455.974130241@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 'currency' question; precision/decimal meaing  (hubert depesz lubaczewski <depesz@depesz.pl>)
Список pgsql-general
>> I want to store prices in a table. What's the best way to do this (since
>> 'money' is deprecated)?

Use type numeric, eg, numeric(12,2) if you want up to 12 digits total
with 2 of 'em after the decimal point (xxxxxxxxxx.xx).

            regards, tom lane

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