What is a stored procedure ?
Answers were Sorted based on User's Feedback
Answer / rajesh
stored procedure is a named pl/sql block which accept some
parameter and performs some action....and its a one time
compilation....
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 6/8/07
It is named pl/sql block that can accept parameters to
perform an action and is stored in database is called
stored procedure
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / charumathi
Store Procedure is named PL-SQL block stored in oracle
server when loaded into memory while execution.
A stored procedure is -a named group of SQL statements
-that have been previously created
and stored in the server database.
-Stored procedures accept input
parameters so that a single procedure can be used over the
network by several clients using different input
data.
-Stored procedures reduce network
traffic and improve performance. Additionally, stored
procedures can be used to help ensure the integrity of the
database.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajeev
NAMED PL/SQL BLOCK STORED IN ORCALE SERVER , CAN ACCEPT
PARAMETERS AND CAN BE INVOKED REPEATDLY BY NAME .
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / uday
Sp is nothing but Group of T-Sql Statments compiled into a
single execution plan.
Sy: create procedure Pname
{@parameter1 datatype,@parameter2.........)
as
SQL Statments
end
Plz let me know if i am wrong
uday_testing@yahoo.co.in
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nashiinformaticssolutions
A stored procedure is a precompiled block of PL/SQL code stored in the database, which can be executed to perform a specific task.
Syntax Example:
CREATE OR REPLACE PROCEDURE IncreaseSalary(emp_id NUMBER, increment NUMBER) AS
BEGIN
UPDATE employees
SET salary = salary + increment
WHERE id = emp_id;
END;
To execute:
EXEC IncreaseSalary(101, 500);
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
A stored procedure is a precompiled block of PL/SQL code stored in the database, which can be executed to perform a specific task.
Syntax Example:
CREATE OR REPLACE PROCEDURE IncreaseSalary(emp_id NUMBER, increment NUMBER) AS
BEGIN
UPDATE employees
SET salary = salary + increment
WHERE id = emp_id;
END;
To execute:
EXEC IncreaseSalary(101, 500);
| Is This Answer Correct ? | 0 Yes | 0 No |
A stored procedure is a precompiled block of PL/SQL code stored in the database, which can be executed to perform a specific task.
Syntax Example:
CREATE OR REPLACE PROCEDURE IncreaseSalary(emp_id NUMBER, increment NUMBER) AS
BEGIN
UPDATE employees
SET salary = salary + increment
WHERE id = emp_id;
END;
To execute:
EXEC IncreaseSalary(101, 500);
| Is This Answer Correct ? | 0 Yes | 0 No |
A stored procedure is a precompiled collection of SQL statements stored in the database. It improves performance and security by reducing query execution time.
Example:
CREATE PROCEDURE GetUsers()
AS
BEGIN
SELECT * FROM Users;
END;
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I start sql from command line?
what is a unique key ? : Sql dba
What is the default isolation level in sql server? : Transact sql
I need a exceptoin in pl/sql block so that if any errors occur in the block then no exception should errors should raise?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
Cite the differences between execution of triggers and stored procedures?
Is drop table faster than truncate?
What is a natural join?
. have a tablle like this: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 I Want below o/p: cust acc --------------- a 1 b 2|3 c 4|5|6 Please any one can you have any ideas share me. I have urgent requirement. CUST ACC a dv b fg b bh c mk c cl c so result:- A B c dv fg mk bh cl so
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
What is posting?
What is pls integer?
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)