Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I alter a trigger in Oracle?

I am trying to change the trigger script for my database. My trigger name is ARCH_USER_UPD_TRG and this puts any updates or deletes on the USER table into a Z_USER table

I am dropping a column from the USER table and now need to modify the trigger script to no longer use this column.

How do I modify the PL/SQL script of an oracle trigger?

like image 985
user906153 Avatar asked Dec 07 '22 21:12

user906153


1 Answers

A trigger is similar to a package or a procedure, so you can simply use

create or replace trigger triggerName
...
declare
...
begin
    ...
end;
like image 89
Aleksej Avatar answered Jan 02 '23 15:01

Aleksej