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...


Can you have multiple SPs with the same name on a database?

Answers were Sorted based on User's Feedback



Can you have multiple SPs with the same name on a database? ..

Answer / jithendranath.g

both above answers are correct,but situvationd diff
1) we can't create same db obj with same name,
2) we want that go for packages ,with overloading concept

Is This Answer Correct ?    14 Yes 0 No

Can you have multiple SPs with the same name on a database? ..

Answer / baba

When we create a stored procedure,if db object already
exists we will get a message that
ERROR at line 1:
ORA-00955: name is already used by an existing object

Is This Answer Correct ?    10 Yes 1 No

Can you have multiple SPs with the same name on a database? ..

Answer / ashok

IT WILL ONLY POSSIBLE FOR IN THE PACKAGE.
EX--
CREATE OR REPLACE PACKAGE PK_TEST AS
PROCEDURE PR_SHOW();
PROCEDURE PR_SHOW(V_NAME VAR CHAR);
END PK_TEST;

Is This Answer Correct ?    5 Yes 0 No

Can you have multiple SPs with the same name on a database? ..

Answer / suman

Hi ,

As per standard Procedure & Function we cannot create same name of Procedure but if you are using in Package you can have same name with different parameter.

Is This Answer Correct ?    0 Yes 0 No

Can you have multiple SPs with the same name on a database? ..

Answer / harsha

Yes We can have multiple SP's with same name.This is called
overloading a Procedure with different parameters.
e.g. CREATE PROCEDURE COMPUTE_AREA (LENGTH IN NUMBER,
WIDTH IN NUMBER);
CREATE PROCEDURE COMPUTE_AREA (LENGTH IN NUMBER,
WIDTH IN NUMBER
UNITS IN NUMBER);

Is This Answer Correct ?    4 Yes 6 No

Can you have multiple SPs with the same name on a database? ..

Answer / thra

yes procedure can have same name overloading differ in data
type ....etc;

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More SQL PLSQL Interview Questions

What is the size of partition table?

0 Answers  


Is subquery faster than join?

0 Answers  


how can we write a column values horizontal by using sql stmt; ex: select name from table_name;(actual output) a b c d require output is a b c d

5 Answers   Honeywell, Interact,


How to Execute a Package in PL/SQL.?

0 Answers   MCN Solutions,


what are Dynamic SQL statements?

9 Answers  


I have done oracle 10g. I need a project knowledge. So if u please send a project how it should be done,Or you can send email link. I will be very grateful to u.

1 Answers  


What is data control language (dcl)?

0 Answers  


give the syntax of grant and revoke commands? : Sql dba

0 Answers  


How do you explain an index number?

0 Answers  


What is the example of procedure?

0 Answers  


What is sql profiling in oracle?

0 Answers  


what is 'mysqlcheck'? : Sql dba

0 Answers  


Categories