Search
 
SCRIPT & CODE EXAMPLE
 

SQL

compound trigger oracle

CREATE OR REPLACE TRIGGER compound_trigger_name
FOR [INSERT|DELETE]UPDATE [OF column] ON table
COMPOUND TRIGGER
   -- Declarative Section (optional)
   -- Variables declared here have firing-statement duration.
     
     --Executed before DML statement
     BEFORE STATEMENT IS
     BEGIN
       NULL;
     END BEFORE STATEMENT;
   
     --Executed before each row change- :NEW, :OLD are available
     BEFORE EACH ROW IS
     BEGIN
       NULL;
     END BEFORE EACH ROW;
   
     --Executed aftereach row change- :NEW, :OLD are available
     AFTER EACH ROW IS
     BEGIN
       NULL;
     END AFTER EACH ROW;
   
     --Executed after DML statement
     AFTER STATEMENT IS
     BEGIN
       NULL;
     END AFTER STATEMENT;

END compound_trigger_name;
Comment

PREVIOUS NEXT
Code Example
Sql :: update multiple rows 
Sql :: mysql dump structure only 
Sql :: concatenation in sql 
Sql :: add column first position mysql 
Sql :: not equal in mysql query 
Sql :: sql max count 
Sql :: window function sql 
Sql :: mysql select smaller of two values 
Sql :: mysql loop through databases and execute query 
Sql :: sql min 
Sql :: Oracle cx_Oracle example 
Sql :: mysql set column equal to another automatic 
Sql :: mysql sleep connections 
Sql :: Ms Sql set us timezone 
Sql :: delete sql 
Sql :: mariadb check constraint example? 
Sql :: sql timezone 
Sql :: was not locked with LOCK TABLES 
Sql :: sqlalchemy filter by relationship 
Sql :: add column sql 
Sql :: How to automatically export database to a csv file 
Sql :: Should I use the datetime or timestamp data type in MySQL? 
Sql :: join sql 
Sql :: postgres insert 
Sql :: how to link java and mysql 
Sql :: jsonb 
Sql :: pl sql revoke role from user 
Sql :: add column to all tables after first column mysql 
Sql :: sql truncate table referencing itself 
Sql :: vbscript clean up ADODB.Recordset 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =