From: Jose' Soares Da Silva <sferac@bo.nettuno.it>
To: Jonah Kuo <jonahkuo@mail.ttn.com.tw>
Cc: pgsqsl-sql <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] decimal(x,y) function.
Date: Mon, 25 May 1998 11:14:04 +0000 (UTC)
Message-ID: <Pine.LNX.3.96.980525110551.750A-100000@proxy.bazzanese.com> (raw)
In-Reply-To: <35693229.450F7394@mail.ttn.com.tw>
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'
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: sferac@bo.nettuno.it, jonahkuo@mail.ttn.com.tw
Subject: Re: [SQL] decimal(x,y) function.
In-Reply-To: <Pine.LNX.3.96.980525110551.750A-100000@proxy.bazzanese.com>
References: <35693229.450F7394@mail.ttn.com.tw> <Pine.LNX.3.96.980525110551.750A-100000@proxy.bazzanese.com>
* 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