Specifying currency using a numeric data type

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: Specifying currency using a numeric data type
Date: 1999-11-08 01:29:49
Message-ID: Pine.LNX.4.10.9911071727090.20871-100000@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I want to replace the MONETARY data types in my tables with the equivalent
numeric type, but I cannot see in the Users Guide just which one I want to
use, and how to specify it as US currency.

It looks like the int4 is what I want. How, though, do I specify a fixed
2-decimal value format in the create table sequence?

TIA,

Rich

Dr. Richard B. Shepard, President

Applied Ecosystem Services, Inc. (TM)
Making environmentally-responsible mining happen. (SM)
--------------------------------
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
+ 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard(at)appl-ecosys(dot)com

Browse pgsql-sql by date

  From Date Subject
Next Message De Moudt Walter 1999-11-08 04:16:26 Re: [SQL] type conversions
Previous Message Hiroshi Inoue 1999-11-08 00:32:26 RE: [SQL] Move forward all (Was Re: How to get last 10 rows in a table on a large database?)