Live ORACLE

if you are Oracle Developer ,than this Blog most likely will make you happy.

About my Blog

This Blog particularized for Oracle Developers ... you will see interesting Codes for SQL , PL/SQL as well as new ideas for Developer Suite and Client Tools that will help you in your professional life ... and I hope I reach for your satisfaction.

About Me

I'm Hany Freedom , 25 years old , I live in EL-Minia City in Egypt , I'm Moderator at ArabOUG.org the best Arabic Forum for ORACLE on the Net. if you interested to know more about me .... just Click Here.

Overloading a Subprogram Name



DECLARE

TYPE datetabtyp IS TABLE OF DATE INDEX BY PLS_INTEGER;

TYPE numtabtyp IS TABLE OF NUMBER INDEX BY PLS_INTEGER;

hiredate_tab DATETABTYP;

sal_tab NUMTABTYP;

PROCEDURE Initialize

(tab OUT DATETABTYP,

n INTEGER)

IS

BEGIN

FOR i IN 1.. n LOOP

Tab(i) := SYSDATE;

END LOOP;

END initialize;

PROCEDURE Initialize

(tab OUT NUMTABTYP,

n INTEGER)

IS

BEGIN

FOR i IN 1.. n LOOP

Tab(i) := 0.0;

END LOOP;

END initialize;

BEGIN

Initialize(hiredate_tab,50); -- calls first (DateTabTyp) version



Initialize(sal_tab,100); -- calls second (NumTabTyp) version



END;

/



Share/Save/Bookmark

0 comments:

Post a Comment



Newer Posts Older Posts Home Page
 
http://www.dpriver.com/images/sqlpp-banner-2.png

Thanks for reading my Blog ... you Visitor Number :-