可以说我有:
create type address as object (
line1 varchar2(50),
city varchar2(50),
member procedure insert_address(line1 varchar2, city varchar2)
)
/
create table address_table of address;
create type body address as
member procedure insert_address(line1 varchar2, city varchar2) is
begin
insert into address_table values (line1, city);
commit;
end insert_address;
end;
/
我怎么打电话insert_address
?
通过执行以下操作,我得到invalid number or types of arguments
begin
address.insert_address('123 my road','london');
end;
我可以做到这一点并且它有效,但似乎是个坏主意:
declare
v_address address := new address(null,null);
begin
v_address.insert_address('123 my road','london');
end;
谢谢