I'm new to DB2 and our team is in the process of
migrating from Oracle to DB2.
Assuming new.created_date is now a TIMESTAMP,
what would be the DB2 translation of this Oracle
trigger?
Thanks.
CREATE OR REPLACE TRIGGER "BZ".atable_created_date
BEFORE INSERT ON atable
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
BEGIN
SELECT sysdate INTO :new.created_date
FROM DUAL;
END;
/