用是可以用的,但你没有实例化 REC
TYPE rec IS RECORD
(
ty_aa table_a.aa%TYPE,
ty_bb table_b.bb%TYPE
);new_rec rec;
new_aa new_rec.ty_aa%type;
这样 new_aa 就可以使用了
TYPE rec IS RECORD
(
ty_aa table_a.aa%TYPE,
ty_bb table_b.bb%TYPE
);new_rec rec;
new_aa new_rec.ty_aa%type;
这样 new_aa 就可以使用了
(
ty_aa table_a.aa%TYPE,
ty_bb table_b.bb%TYPE
);SUBTYPE sub_type is table_a.aa%TYPE;然后使用 sub_type定义类型就可以了.
如:
FUNCTION INS(
ty_aa IN table_a.aa%TYPE,
ty_bb IN table_b.bb%TYPE
) RETURN NUMBER
IS用上面的方法不行啊,,
再赐教
ty_aa IN table_a.aa%TYPE,
ty_bb IN table_b.bb%TYPE
) RETURN NUMBER
IS
ty_aa ,ty_bb是参数而
SUBTYPE sub_type is table_a.aa%TYPE;sub_type 是变量
参数前加SUBTYPE不能定义请赐教,谢谢