Professional Documents
Culture Documents
Triggers Prac
Triggers Prac
Triggers Prac
1) TAKE ANY SAMPLE DATA WITH 2-3 TABLES & CREATE 3 DIFFERENT IN IT
SIMPLE VIEW
2 TABLE JOIN
A stored procedure is a set of SQL statements that is stored as an object in the database.It
can be saved to run many times and even later time, making it easier for yourself and other
developers in the future.
We can call stored procedures from a database trigger, a stored subprogram, or
interactively from SQL Command Line (SQL* ).
Functions can be used in any SQL command. Think of the COUNT function, or a function
that converts to upper case like UPPER. It can be used in SELECT, INSERT, UPDATE, and
DELETE statements, in many places.However, stored procedures cannot be used in this way.
They can only be used by using a specific command such as CALL or EXECUTE.
BEGIN
END;
BEGIN
END;