pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-sql@postgresql.org
Subject: Re: Clarification With Money data type
Date: 11 Mar 2010 08:49:50 GMT
Message-ID: <hnaare$jh$1@reversiblemaps.ath.cx> (raw)
References: <4e98ec861003092319q457aa3camb9b4bcd36cfbfc15@mail.gmail.com>

On 2010-03-10, Navanethan Muthusamy <navanethanmca@gmail.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
 



view thread (3+ messages)  latest in thread

Message-ID: <hnaare$jh$1@reversiblemaps.ath.cx>
Permalink:  ../hnaare$jh$1@reversiblemaps.ath.cx/
Also on:    postgresql.org/message-id/hnaare$jh$1@reversiblemaps.ath.cx

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasen@xnet.co.nz
  Subject: Re: Clarification With Money data type
  In-Reply-To: <hnaare$jh$1@reversiblemaps.ath.cx>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox