Answer Posted / 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 |
Post New Answer View All Answers
What is pl sql block in dbms?
What is sql constant?
Explain two easy sql optimizations.
Does sql require a server?
What is a scalar value in sql?
What is the usage of sql functions?
What are the types of triggers in sql?
what is a stored procedure? : Sql dba
Does sql profiler affect performance?
Why are indexes and views important to an organization?
What is the importance of sqlcode and sqlerrm?
Define SQL and state the differences between SQL and other conventional programming Languages?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
who introduced sql?
Which is better join or inner query?