我想为以下两种类型创建一个构造函数。这是代码:
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;
有没有办法为嵌套表类型创建用户定义的构造函数,toys_t
还是只支持使用as object
语法创建的类型?
谢谢
鲍勃