Re: numeric definition advice

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: numeric definition advice
Дата
Msg-id 11895.1204897050@sss.pgh.pa.us
обсуждение исходный текст
Ответ на numeric definition advice  (Raimon Fernandez <coder@montx.com>)
Ответы Re: numeric definition advice  (Raimon Fernandez <coder@montx.com>)
Список pgsql-novice
Raimon Fernandez <coder@montx.com> writes:
> Is valid to have a numeric with no precision and a scale of 2 ?

No.  You can do something like NUMERIC(1000,2) though.  It's pretty
much like VARCHAR --- the number you give is an upper limit, it's
not causing any wasted space to be allocated.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Raimon Fernandez
Дата:
Сообщение: numeric definition advice
Следующее
От: Mary Anderson
Дата:
Сообщение: pg_prepare question