can use the following like overloading concept in a single
package:
procedure p1(a varchar),
procedure p1(a varchar2),
procedure p1(a char)
Answer Posted / bunty
Yes. you can create package where overloading will be
identified by using type of arguments.
Following code will work fine,
--WORK's FINE
create or replace package PK_TEST AS
procedure p1(a IN varchar);
procedure p1(a IN varchar2);
procedure p1(a IN char);
end PK_TEST;
But,following code will not work as p1( v1 IN varchar) and
p1(v3 IN varchar) has the same type of arguments.
--NOT WORK
create or replace package PK_TEST AS
procedure p1(v1 IN varchar);
procedure p1(v2 IN varchar2);
procedure p1(v3 IN varchar);
end PK_TEST;
Cheers,
Bunty
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is execution plan in sql?
What is a pdo connection?
Can we commit inside a trigger?
What is delimiter in pl sql?
What is a unique key?
What are pl/sql cursors?
define join and explain different type of joins? : Sql dba
what is a trigger? : Sql dba
what happens if you no create privilege in a database? : Sql dba
Explain the difference between rename and alias?
what is the difference between truncate and delete statement? : Transact sql
What is sql constant?
What is a delimiter in sas?
Can you have more than one trigger on a table?
Why use truncate instead of delete?