Re: [SQL] Decimal precsion? - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] Decimal precsion?
Date
Msg-id 199910300001.UAA24534@candle.pha.pa.us
Whole thread Raw
In response to Decimal precsion?  ("Zot O'Connor" <zot@zotconsulting.com>)
List pgsql-sql
> 
> create table subzone (
>         subzid        integer,
>         subzsid       integer DEFAULT NEXTVAL ('subzone_seq'),
>         subzdescr     varchar,
>         subztaxper    decimal(0,4),
>         subzvendid    integer,
>         subzwhsid     integer,
>         subztaxship   integer
> );
> ERROR:  DECIMAL precision 0 must be beween 1 and 1000
> 
> 
> Is this documented anywhere?  By the way it should be "beTween."

Precision is the full length of the field.  Scale is the number of
digits to the right of the decimal point.

Beween -> Between change made.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] trivial problem
Next
From: Bruce Momjian
Date:
Subject: Re: [SQL] trivial problem