您需要:
-
去除
table
在
v_ret
公告
-
包括第三个
banking_crisis
调用中的值
african_crisis_row
对象构造函数。
-
包括
;
语句终止符位于
return
和最终版本
end
声明。
(Oracle使用
VARCHAR2
和
VARCHAR
是的别名
瓦查尔2
.)
类似这样:
create or replace function african_crisis (
country_abv in varchar2,
year_min in number,
year_max in number
) return t_african_crisis_table
as
v_ret t_african_crisis_table;
begin
select african_crisis_row(country_abv, year, banking_crisis)
bulk collect into v_ret
from africancrisisdata
where country_abv = country_abv
and year between year_min and year_max;
return v_ret;
end african_crisis;
/
数据库(&L)&燃气轮机;不停摆弄
here