我正在oracle apex 18.2中工作,我对表上的IUD触发器有一些要求,我擅长创建数据库级别的触发器,但是我想在Apex级别进行处理,例如,如果我在数据库级别具有低于Trigger的级别>
CREATE OR REPLACE TRIGGER xx_stu_transfer_trg
BEFORE INSERT OR UPDATE OR DELETE ON S_STU_TRANSFERS
FOR EACH ROW
BEGIN
-- Flags are booleans and can be used in any branching construct.
CASE
WHEN INSERTING THEN
SELECT NVL(MAX(TRANSFER_ID),0)+1 INTO :NEW.TRANSFER_ID FROM S_STU_TRANSFERS;
:NEW.CREATION_DATE := SYSDATE;
:NEW.CREATED_BY := nvl( v( 'APP_USER'), user) ;
WHEN UPDATING THEN
:NEW.LAST_UPDATED_DATE := SYSDATE;
:NEW.LAST_UPDATED_BY := nvl( v( 'APP_USER'), user) ;
ELSE
NULL;
END CASE;
END;
/
我想在apex Process或其他我可以处理相同代码的地方处理相同的代码。需要一些示例的建议