为什么varchar2编译不能通过,换成Number就可以,varchar2使用方法不正确吗?求指教

create or replace function test
return varchar2
as
result varchar2:='hello';
begin
return result;
end test;
create or replace function test
return varchar2
as
result number:=100;
begin
return result;
end test;
------解决方案--------------------
show errors
看一下
------解决方案--------------------
数据类型错误
result varchar2(10):='hello'; 试试