Re: 'currency' question; precision/decimal meaing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 'currency' question; precision/decimal meaing
Date: 2000-11-13 15:44:01
Message-ID: 9455.974130241@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wade D. Oberpriller 2000-11-13 15:58:31 PL/Perl
Previous Message davidb 2000-11-13 15:43:50 Re: PHPBuilder article -- Postgres vs MySQL