From: Jonah Kuo <jonahkuo@mail.ttn.com.tw>
To: Jose' Soares Da Silva <sferac@bo.nettuno.it>
Cc: pgsqsl-sql <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] decimal(x,y) function.
Date: Mon, 25 May 1998 18:01:39 +0800
Message-ID: <35694183.444DC5C9@mail.ttn.com.tw> (raw)
References: <Pine.LNX.3.96.980525110551.750A-100000@proxy.bazzanese.com>
Jose' Soares Da Silva wrote:
> On Mon, 25 May 1998, Jonah Kuo wrote:
>
> > Hello,
> >
> > How should I use the decimal(x,y) function?
> >
> > I tried use it with the following result:
> >
> > db6000=> create table atest (
> > db6000-> price decimal(8,2));
> > ERROR: DECIMAL scale 2 must be zero
> >
> PostgreSQL doesn't yet implement full syntax of SQL DECIMAL type.
> It accepts only scale equal to 0 as in:
>
> DECIMAL(8,0)
>
> And it must be DECIMAL, PostgreSQL doesn't recognize the abbreviation DEC
>
> Jose'
How can I change a column's type defined decimal(8,0) to money?
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jonahkuo@mail.ttn.com.tw, sferac@bo.nettuno.it
Subject: Re: [SQL] decimal(x,y) function.
In-Reply-To: <35694183.444DC5C9@mail.ttn.com.tw>
References: <Pine.LNX.3.96.980525110551.750A-100000@proxy.bazzanese.com> <35694183.444DC5C9@mail.ttn.com.tw>
* 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