I have an Oracle table as follows.
create table test_table
(
id number(19),
width number(4,2)
);
When I try to insert width = 100 into this table, it fails to complain that value is larger than precision.
insert into test_table values (1, 100);
Error: ORA-01438: value larger than specified precision allowed for this column
I read the documentation of Oracle on the definition of NUMBER. Based on that, it seems the INSERT should be correct.
Can someone explain what is wrong in above insert?