[GENERAL] How to define the limit length for numeric type? - Mailing list pgsql-general

Hi everyone,

How to define the exact limit length of numeric type? For example,

CREATE TABLE test  (id serial, goose numeric(4,1));

300.2 and 30.2 can be inserted into COLUMN goose, but I want 30.2 or 3.2 can not be inserted, how to do this?

Thank you.



pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: [GENERAL] Index using in jsonb query
Next
From: "Charles Clavadetscher"
Date:
Subject: Re: [GENERAL] How to define the limit length for numeric type?