Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Formating output in functions in PL/SQL
Hi,
I need to create two functions, each called PRINT_IT to print a date, or a
number value depending on how the function was invoked.
FUNCTION PRINT_IT(
f_date in date
) RETURN DATE AS
BEGIN
null;
END PRINT_IT;
FUNCTION PRINT_IT(
f_num in number
) RETURN NUMBER AS
v_num number(999,999.00);
--column f format 999,999.00;
BEGIN
v_num:=f_num;
--select v_num into f from dual;
DBMS_OUTPUT.PUT_LINE(v_num);
END PRINT_IT;
end OVER_LOAD;
/
Received on Fri Mar 17 2000 - 20:53:06 CST