CIS 430: Database Systems: Views, Stored Procedures, Functions, and Triggers
CIS 430: Database Systems: Views, Stored Procedures, Functions, and Triggers
‹#›
Views in SQL
‹#›
SQL Views: An Example
‹#›
View Implementation
‹#›
View Implementation
ORACLE
CREATE MATERIALIZED VIEW or CREATE SNAPSHOT
‹#›
Update Views
‹#›
Stored Procedures in MySQL
‹#›
Example
Step 2:
1. Define a procedure called updateSalary which takes as
input a department number.
‹#›
Example
‹#›
Example
‹#›
Example
‹#›
Stored Procedures in MySQL
‹#›
Stored Procedures in MySQL
‹#›
Example using Cursors
‹#›
Example using Cursors
‹#›
Example using Cursors
Call procedure
‹#›
Another Example
‹#›
Another Example
‹#›
Another Example
‹#›
Functions
‹#›
Example of Functions
‹#›
SQL Triggers
‹#›
SQL Triggers: An Example
‹#›
SQL Triggers: An Example
‹#›
SQL Triggers: An Example
‹#›
SQL Triggers: An Example
‹#›
SQL Triggers: An Example
‹#›
SQL Triggers: An Example
‹#›
SQL Triggers: An Example
‹#›
SQL Triggers
‹#›