create or replace function hello(my in string) return varchar2 is
Result varchar2(100);
begin
Result:='Hello '||to_char(my);
return(Result);
end hello;
select hello('"Zianed"')
from dual;
可以执行啊。
oracle_home (2008-12-04 09:59:58)
select hello('hello') from dual 不行吗 必须是' " hello" '
最新回复
dotbyte (2008-12-03 12:15:42)
'''O'''->'o'
gavinhuang (2008-12-03 12:42:21)
oracle_home (2008-12-03 15:27:18)
zianed (2008-12-03 17:40:22)
create or replace function hello(my in string) return varchar2 is
Result varchar2(100);
begin
Result:='Hello '||to_char(my);
return(Result);
end hello;
select hello('"Zianed"')
from dual;
可以执行啊。
oracle_home (2008-12-04 09:59:58)
再者参数判断要写成 hello=' "hello" '
????
gavinhuang (2008-12-04 11:15:00)