Oracle+DBMS PL - SQL Trigger
Oracle+DBMS PL - SQL Trigger
• Oracle
- Windows, Unix, Linux
- Whole storage system
- Enterprise wide or internet wide uses
PL/SQL
• PL/SQL is Oracle’s Procedure Language
extension to SQL
• PL/SQL
- Block-structured
- Declare variables, constants
- Use control flows
- Handle exceptions
- Call Other PL/SQL Modules
Procedures
• PL/SQL is usually used to program
procedures
• Syntax
Create or replace procedure<name>(list of parameters) as
Declare option
Begin
Exception option
End
/
Stored Procedure Example
--modify the salary of a given employee