Re: Alternative to "Money" ...

From: "Matt Clark" <matt(at)ymogen(dot)net>
To: <cgg007(at)yahoo(dot)com>, "Harald Fuchs" <hf118(at)protecting(dot)net>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Alternative to "Money" ...
Date: 2004-02-03 14:42:40
Message-ID: OAEAKHEHCMLBLIDGAFELAEECEJAA.matt@ymogen.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> .. I can't _quite_ tell if you're serious or not ... :)
>
> If you are serious, are you saying to do something like:
>
> CREATE TABLE new_money (product text, dollars int4, cents int4);

Ha :-) That would not be serious. I'm pretty sure he meant to just store the product cost in cents instead of dollars, e.g.

> CREATE TABLE new_money (product text, cents int4);
> INSERT INTO new_money (product, cents) values ('Flowbee','1995');
> INSERT INTO new_money (product, cents) values ('Garth Brooks\'s
> Greatest Hits','999');

M

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-02-03 15:21:14 Re: pg_dump privileges
Previous Message Chris Gamache 2004-02-03 14:17:33 Re: Alternative to "Money" ...