I get the following error when inserting the following values:
ERROR at line 1: ORA-01438: value larger than specified precision allowed for this column
insert into comands values(
'11111111A',
'05MAY21',
col_products(
t_products(
'Rice with chicken',
1000,
(select ref(inf) from infoNutri inf where inf.num_calories=1000)
)
)
);
create or replace type t_comandas is object(
id varchar2(9),
date date,
products col_products
);
/
create or replace type t_products as object(
name varchar2(20),
price number(4,2),
info_nutritional ref t_infoNutritional
)