Numeric type

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Jan Wieck <jwieck(at)debis(dot)com>
Cc: Postgres Hackers List <hackers(at)postgresql(dot)org>
Subject: Numeric type
Date: 1999-01-06 02:29:15
Message-ID: 3692CA7B.9EFA5070@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

OK, I give up :) How do I use the numeric type?

postgres=> create table n1 (n numeric(10,5), d decimal(10,5));
CREATE
postgres=> insert into n1 values ('1.23456', '1.23456');
ERROR: overflow on numeric
ABS(value) >= 10^0 for field with precision 2087 scale 31828
postgres=> insert into n1 values ('12345.23456', '1.23456');
ERROR: overflow on numeric
ABS(value) >= 10^4 for field with precision 2087 scale 50860

- Tom

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-01-06 02:33:28 Re: [HACKERS] Numeric type
Previous Message Bruce Momjian 1999-01-06 02:21:39 Re: [HACKERS] Re: [GENERAL] Views