I want to create a constructor for the 2 types below. Here's the code:
create or replace type toys_t as table of varchar2(40);
create or replace type kid_t as object (
name varchar2(10),
toys toys_t,
constructor function kid_t (name varchar2) return self as result);
create table kid of kid_t nested table toys store as table_toys;
Is there a way of creating a user-defined constructor for the nested table type toys_t
or is it only supported for TYPEs created using the as object
syntax?
Thanks
Bob