Jcat
宠辱不惊,闲看庭前花开花落~~
posts - 173,comments - 67,trackbacks - 0
Background
--
create   or   replace   function  f_must_return(hello  in   varchar2 return   varchar2   is
  Result 
varchar2 ( 20 );
begin
  Result :
=  hello  ||   '  world ' ;
  
return (Result);
end  f_must_return;

调用函数
-- by select
select  f_must_return( ' hello ' from  dual;

-- by procedure exec
set  serveroutput  on ;
exec  dbms_output.put_line(f_must_return( ' hello ' ))

-- by variable
variable x  varchar2
exec  :x: = f_must_return( ' hello ' )
posted on 2006-12-19 13:25 Jcat 阅读(174) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: