Home> Database> Oracle> body text

What are the types of triggers in Oracle?

下次还敢
Release: 2024-05-09 21:45:26
Original
894 people have browsed it

Oracle trigger types include: 1. INSERT (triggered when a record is inserted); 2. UPDATE (triggered when a record is updated); 3. DELETE (triggered when a record is deleted); 4. BEFORE (execute action before the event) ); 5. AFTER (execute action after event); 6. INSTEAD OF (replace original event action); 7. ROW (apply action only to specific rows); 8. STATEMENT (apply action to entire SQL statement); 9. DDL (Triggered when a DDL statement is executed); 10. System (created and maintained by Oracle).

What are the types of triggers in Oracle?

Types of triggers in Oracle

A trigger in Oracle is a database object that Automatically perform the specified action when it occurs. Triggers are mainly divided into the following types:

1. INSERT trigger

is triggered when a record is inserted into the table.

2. The UPDATE trigger

is triggered when a record is updated in the table.

3. DELETE trigger

Fires when a record is deleted from the table.

4. BEFORE trigger

A trigger that performs actions before an event occurs.

5. AFTER trigger

A trigger that performs actions after an event occurs.

6. INSTEAD OF trigger

A trigger that replaces the action of the original event.

7. ROW trigger

A trigger that only applies actions to specific rows.

8. STATEMENT trigger

A trigger that applies actions to the entire SQL statement.

9. DDL trigger

A trigger that fires when a data definition language (DDL) statement (such as CREATE, ALTER, DROP) is executed.

10. System triggers

Built-in triggers created and maintained by Oracle.

The above is the detailed content of What are the types of triggers in Oracle?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!