create or replace function to_char(a number) return varchar2
is
begin
return a ||'입니다';
end;
/
col ret format a20
select empno, sal, to_char(sal), java30.to_char(sal) as ret
from emp;
-----------------
create or replace package pack_overloading
is
procedure print(a number);
end;
/
create or replace package body pack_overloading
is
function to_char(a number) return varchar2
is
begin
return a ||'입니다';
end;
procedure print(a number)
is
begin
p(to_char(a));
p(standard.to_char(a));
end;
end;
/
set serveroutput on
exec pack_overloading.print(1000)
'Oracle > PL/SQL' 카테고리의 다른 글
15일차 # 4-28: PL/SQL Wrapper (0) | 2012.04.24 |
---|---|
15일차 # 4-8: Forward Declaration (0) | 2012.04.24 |
15일차 Chapter 4 - Packages II # 4-3 (0) | 2012.04.24 |
15일차 # 3-17 (0) | 2012.04.24 |
15일차 # 3-14: USER_SOURCE data dictionary (0) | 2012.04.24 |