我有一种称为预算的类型定义为
create type budget as object (
year number,
amount number,
member function left_over (year in number) return number
)
身体:
create type body budget as
member function left_over(year in number) return number is
begin
return amount;
end left_over;
end;
和一个对象表
create table budget_table of budget;
如何使用成员函数返回金额?就像是:
select b.left_over(2010) from budget_table b;
谢谢