Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


overloading of stored procedure is possible in oracle?

Answers were Sorted based on User's Feedback



overloading of stored procedure is possible in oracle?..

Answer / neeraj siddhey

Overloading: Multiple subprograms of the same name

• Enables you to use the same name for different
subprograms inside a PL/SQL block, a subprogram, or a
package

• Requires the formal parameters of the subprograms to
differ in number, order, or data type family

• Enables you to build more flexibility because a user or
application is not restricted by the specific data type or
number of formal parameters

Note: Only local or packaged subprograms can be overloaded.
You cannot overload stand-alone subprograms.

Is This Answer Correct ?    11 Yes 0 No

overloading of stored procedure is possible in oracle?..

Answer / monika

No, Only packaged procedures and procedures exists in
pl/sql blocks can be overloaded.Stored procedures can't.

Is This Answer Correct ?    9 Yes 1 No

overloading of stored procedure is possible in oracle?..

Answer / vipin kumar

This is how its works

create or replace package vips_test as
function addition(a1 in number, b in number, c1 in number default 0) return number;
function addition(a1 in number, b in number ,d1 in number default 0) return number;
end;
/
show errors;


create or replace package body vips_test as

function addition(a1 in number, b in number, c1 in number default 0)
return number is
begin
dbms_output.put_line('---------------1----------------------');

return a1+b+c1;
end;


function addition(a1 in number, b in number ,d1 in number default 0)
return number is
begin
dbms_output.put_line('---------------2----------------------');

return a1+b+d1;
end;


end;
/
show errors;


select vips_test.addition(a1 => 1 ,b =>2, c1 => 2) from dual;

but if you will try calling as above

select vips_test.addition(a1 => 1 ,b =>2) from dual;

SQL Error: ORA-06553: PLS-307: too many declarations of 'ADDITION' match this call
06553. 00000 - "PLS-%s: %s"

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

how to create a new table in mysql? : Sql dba

0 Answers  


What is the use of cursor ? how cursor allocate context area for executing the sql statement?

4 Answers   HCL,


Is it possible to link two groups inside a cross products after the cross products group has been created?

0 Answers  


Why do we use partitions in sql?

0 Answers  


Is mariadb nosql?

0 Answers  


what are all the different normalizations? : Sql dba

0 Answers  


What does select top 1 do in sql?

0 Answers  


What is optimistic concurrency control? : Transact sql

0 Answers  


State the difference between implict and explict cursor's?

7 Answers   CTS,


What is plpgsql language?

0 Answers  


can we create index on index?

7 Answers   iFlex, Symphony,


What is dynamic SQl and how you will create and execute dynamic sql?

2 Answers   TCS,


Categories