I wanted to ask if this is a DML or DDL Trigger ?
CREATE OR REPLACE TRIGGER INFORMATION_TIMEZONE
BEFORE INSERT ON information
FOR EACH ROW
BEGIN
IF (session_params.getCurrentRefperso) IS NOT NULL THEN
:new.DT_HOUR_TIME_ZONE := current_timestamp();
END IF;
END;
The BEFORE INSERT
defines this trigger to be fired when an INSERT
is done.
As INSERT
is a DML statement, the trigger is a DML trigger.
A DDL trigger would eg have BEFORE CREATE
or BEFORE DROP
in the trigger definition.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.