Home > Database > Mysql Tutorial > How to close trigger in oracle

How to close trigger in oracle

WBOY
Release: 2022-05-26 10:42:31
Original
5406 people have browsed it

Oracle method to close triggers: 1. Use the "alter table table name disable all triggers;" statement to close all triggers in the table; 2. Use the "alter trigger trigger name disable;" statement to close the specified trigger.

How to close trigger in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to turn off triggers in oracle

1. Disable all triggers (triggers) in the specified table

Syntax:

alter table 表名 disable all triggers;
Copy after login

The example is as follows:

alter table table_name disable all triggers;
Copy after login

2. Disable the specified trigger (trigger)

Syntax:

alter trigger 触发器名 disable;
Copy after login

The example is as follows:

alter trigger trigger_name disable;
Copy after login

Extended knowledge:

Enable all triggers in the specified table

Syntax:

alter table 表名 enable all triggers;
Copy after login

Examples are as follows:

alter table table_name enable all triggers;
Copy after login

Enable specified trigger (trigger)

Syntax:

alter trigger 触发器名 enable;
Copy after login

The example is as follows:

alter trigger trigger_name enable;
Copy after login

Recommended tutorial: "OracleVideoTutorial

The above is the detailed content of How to close trigger 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template