oracle删除触发器语句sql
时间: 2023-07-29 14:10:14 浏览: 202
oracle数据库删除触发器实例
要删除Oracle触发器,可以使用以下SQL语句:
```sql
DROP TRIGGER trigger_name;
```
其中,`trigger_name`是要删除的触发器的名称。请确保在执行此语句之前,先检查触发器的状态,确保触发器存在并处于可删除状态。可以使用以下SQL语句检查触发器的状态:
```sql
SELECT TRIGGER_NAME, STATUS FROM USER_TRIGGERS WHERE UPPER(TRIGGER_NAME) = 'TRG_DROP_EXAMPLE';
```
如果输出结果为"no rows selected",则表示没有找到名为`TRG_DROP_EXAMPLE`的触发器,可以继续执行删除操作。\[1\]
#### 引用[.reference_title]
- *1* [Oracle PL / SQL –删除触发器示例](https://blog.csdn.net/cyan20115/article/details/106548882)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [转帖 把触发器说透(个人感觉写的还不错)](https://blog.csdn.net/kimifdw/article/details/6385156)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文