[GENERAL] How to define the limit length for numeric type?

Поиск
Список
Период
Сортировка
От vod vos
Тема [GENERAL] How to define the limit length for numeric type?
Дата
Msg-id 15ac127c632.c57753f113515.4524597789027314319@zoho.com
обсуждение исходный текст
Ответы Re: [GENERAL] How to define the limit length for numeric type?  ("Charles Clavadetscher" <clavadetscher@swisspug.org>)
Re: [GENERAL] How to define the limit length for numeric type?  (Christoph Moench-Tegeder <cmt@burggraben.net>)
Re: [GENERAL] How to define the limit length for numeric type?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: [GENERAL] How to define the limit length for numeric type?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: [GENERAL] How to define the limit length for numeric type?  (rob stone <floriparob@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: [GENERAL] Index using in jsonb query
Следующее
От: "Charles Clavadetscher"
Дата:
Сообщение: Re: [GENERAL] How to define the limit length for numeric type?