Can you have multiple SPs with the same name on a database?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Answer / thra
yes procedure can have same name overloading differ in data
type ....etc;
| Is This Answer Correct ? | 2 Yes | 5 No |
Is join and inner join the same?
How do I use google cloud in sql?
What is the file extension for sql database?
While inserting/updating million of records into a database table, how do I came to know how many records has been inserted or updated successfully so far?
Does access use sql?
What are predefined functions in sql?
What are its different types of dbms?
Which join is like an inner join?
What is a table in a database?
how to eliminate null values in a column i.e table vlaues 1 2 3 NULL 3 4 1 5 NULL i want output like this 1 2 3 3 4 1 5 i dnt want to use nvl is null and i dnt want replace the NULL value with any value i.e nvl(col,o);
Why indexing is needed?
What is procedure and function?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)