From: | Herbert Liechti <Herbert(dot)Liechti(at)thinx(dot)ch> |
---|---|
To: | Hans Peter Würmli <wurmli(at)datacomm(dot)ch>, postgres <pgsql-general(at)postgreSQL(dot)org> |
Subject: | Re: [GENERAL] decimal(9.2) |
Date: | 1999-06-25 17:56:58 |
Message-ID: | 3773C2EA.AE280430@thinx.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hans Peter Würmli wrote:
> Try:
>
> dbhpw=> create table therbert (num numeric(9,2));
Is not working. I got the following error:
db=> create table therbert (num numeric(9,2));
ERROR: NUMERIC scale 2 must be zero
I use PostgreSQL 6.4.0 on i586-pc-linux-gnu, compiled by gcc egcs-2.91.6
Any other hints?
> On 25-Jun-99 Herbert Liechti wrote:
> > Hello
> >
> > How do I define the datatype decimal(9.2). I searched the documentation
> > but the only thing I found was the money data type which is in my case
> > not very usefull.
> >
> > Is there a way to declare a datatype with 2 decimal places and with a fixed
> > precision? Thanks for your help
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Herbert Liechti E-Mail: Herbert(dot)Liechti(at)thinx(dot)ch
ThinX networked business services Stahlrain 10, CH-5200 Brugg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From | Date | Subject | |
---|---|---|---|
Next Message | Hans Peter Würmli | 1999-06-25 18:37:40 | RE: [GENERAL] decimal(9.2) |
Previous Message | M Simms | 1999-06-25 17:31:33 | Re: [GENERAL] What does this mean ? |