sql - "ORA-01438: value larger than specified precision allowed for this column" when inserting 3 -


i'm running error when trying insert number except 0 field format number (2,2).

update     prog_own.prog_tporcentaje_merma set     pct_merma = 3     idn_porcentaje_merma = 1 

[error code: 1438, sql state: 22003] ora-01438: value larger specified precision allowed column

column_name data_type   type_name   column_size   buffer_length   decimal_digits pct_merma   3           number      2             0               2 

it happens if try decimal numbers.

any idea why?

you can't update number greater 1 datatype number(2,2) because, first parameter total number of digits in number , second 1 (.i.e 2 here) number of digits in decimal part. guess can insert or update data < 1. i.e. 0.12, 0.95 etc.

please check number datatype in number datatype.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -