Re: Clarification With Money data type

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Clarification With Money data type
Date: 2010-03-11 08:49:50
Message-ID: hnaare$jh$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-sql

On 2010-03-10, Navanethan Muthusamy <navanethanmca(at)gmail(dot)com> wrote:
> --0016e68e9a5510f1f504816d1fcb
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I am using Postgresql 8.4, Can you tell me How Can I use Money data type?

it's best not to, "money" is a fixed-point fromat based on 32 bit
integers, abn it's deprecated.

> I want to store the money and retrieve. Please give me idea to work on that.

for that you use a bank, not a database :)

> I am using Java with Postgresql, I have tried java.math.BigDecimal with
> Money, but its giving error. (Its asking me to do the casing)

???

it's better to use some sort of numeric

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jason Tesser 2010-03-11 22:39:43 Re: Multiple Functions and Tables in different Schemas with COmposite Types
Previous Message Jason Tesser 2010-03-11 02:20:45 Re: Multiple Functions and Tables in different Schemas with COmposite Types

Browse pgsql-sql by date

  From Date Subject
Next Message Ben Morrow 2010-03-11 11:46:48 Re: Help : insert a bytea data into new table
Previous Message dennis 2010-03-11 04:09:03 Re: Help : insert a bytea data into new table