It is a set of precompiled SQL statements that are used to perform a particular task. A procedure has a name, a parameter list, and SQL statement, etc. It will help in reduce network traffic and increase the performance.

BY Best Interview Question ON 27 Jan 2019


CREATE PROCEDURE simple_function
    SELECT first_name, last_name
    FROM employee;

EXEC simple_function;