I'm trying to witr a gtrigger on table called TRUCK,when TRK_IS_ACTIVE='F' I want to update s field TRK_STOP_DATE to SYSDATE.
CREATE OR REPLACE TRIGGER UPDATETRUCK
BEFORE UPDATE OF TRK_IS_ACTIVE ON TRUCK
BEGIN
IF TRK_IS_ACTIVE = 'F' THEN
UPDATE TRUCK SET TRK_STOP_DATE = 'SYSDATE';
END IF;
END;
THis trigger is not working. Can some one give me an idea.
Thanks
CREATE OR REPLACE TRIGGER UPDATETRUCK
BEFORE UPDATE OF TRK_IS_ACTIVE ON TRUCK
BEGIN
IF TRK_IS_ACTIVE = 'F' THEN
UPDATE TRUCK SET TRK_STOP_DATE = 'SYSDATE';
END IF;
END;
THis trigger is not working. Can some one give me an idea.
Thanks