T
T
trevoga_su2017-04-26 17:40:54
PostgreSQL
trevoga_su, 2017-04-26 17:40:54

How to understand Numeric value out of range error?

Numeric value out of range: 7 ERROR: numeric field overflow DETAIL
: A field with precision 4, scale 2 must round to an absolute value less than 10^ 2 . can't understand logically

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fixid, 2017-04-26
@trevoga_su

postgresql.ru.net/manual/datatype-numeric.html
You misunderstand the operation of the numeric type
In numeric(4, 2) you can write two digits before the decimal point and two after

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question