What is a stored procedure in sql with example?
Answer / Ramesh Chanda
"Stored Procedure": It's a prepared SQL code that can be saved and reused. To create a stored procedure, you use the CREATE PROCEDURE statement. Here's an example:
CREATE PROCEDURE CalculateAverage ( @a INT, @b INT )
AS
SELECT AVG( @a + @b )
EXECUTE CalculateAverage 5, 10
| Is This Answer Correct ? | 0 Yes | 0 No |
Is inner join faster than left join?
How many triggers can be implemented for a table?
What is memory optimized?
How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?
how to check myisam tables for errors? : Sql dba
How will we see framework of a table?
How to Execute a Package in PL/SQL.?
What is a trigger in pl/sql?
What is primary key and foreign key with example?
How to Declare Fixed Length String Value In PL SQL
Can ddl statements be used in pl/sql?
what is HASH join?
Oracle (3253)
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)