Re: [SQL] decimal(x,y) function.

From: "Jose' Soares Da Silva" <sferac(at)bo(dot)nettuno(dot)it>
To: Jonah Kuo <jonahkuo(at)mail(dot)ttn(dot)com(dot)tw>
Cc: pgsqsl-sql <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] decimal(x,y) function.
Date: 1998-05-25 11:14:04
Message-ID: Pine.LNX.3.96.980525110551.750A-100000@proxy.bazzanese.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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'

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Hartwig 1998-05-25 13:01:39 Re: [SQL] ODBC Sources
Previous Message Anton Stckl 1998-05-25 10:09:42 Re: [SQL] escaping the '