Re: I want more Money (the data type, of course! :-))

Поиск
Список
Период
Сортировка
От Nils Zonneveld
Тема Re: I want more Money (the data type, of course! :-))
Дата
Msg-id 3B06AA03.B6BE12C8@mbit.nl
обсуждение исходный текст
Ответ на I want more Money (the data type, of course! :-))  (Carlos Moreno <moreno@mochima.com>)
Список pgsql-general

Carlos Moreno wrote:
>
> No, it's not spam!  :-)
>
> I'm just wondering if there is a data type like Money, but with
> a (much much much) higher range -- checking the documentation,
> it would look like PG uses an int (32bits) to store the amount
> of cents -- but -21 million to +21 million is insufficient for
> accounting of a small company...  :-(
>
> Float is out of the question, of course (if it is really stored
> as a float or double).
>
> Any suggestions?

I normally use Numeric(10,2)

HTH,

Nils

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

Предыдущее
От: Björn Lundin
Дата:
Сообщение: Autocommit off in psql??
Следующее
От: liman@linux.sanyres.es (Liman bad-adn)
Дата:
Сообщение: Re: perl vs php for postgresql