Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQLServer ->Oracle : IF UPDATE(Column)....

Re: SQLServer ->Oracle : IF UPDATE(Column)....

From: P. Larsen <plarsen_at_dc.dynares.com>
Date: Mon, 23 Nov 1998 07:58:32 -0500
Message-ID: <73cbl9$7nh6@news.uscg.mil>


Hi,
Look at :new and :old of rowlevel triggers in Oracle. Do a before insert, and compare the same field:

BEGIN
  IF :OLD.CREATED_DATE != :NEW.CREATED_DATE then

     raise something_rotten_in_the_state_of_denmark;   END IF;
END;

    thus checking that the user of an UPDATE sql did indeed also set the AuditUserId

    column.

    Oracle appears to have quite a set of trigger options, including one     where A trigger is called for a specified column update BUT i don't think

    this will work for me,
    because when the row updates, ie another trigger - update of the table -

    i need to check that the AuditUserId was set     AND the old and new value of AuditUserId could be the SAME!!

    By the way: I am using Oracle Lite 3.5

    I am out of ideas for porting this one!     anyone got an idea ?
    i'll be so thankful. Received on Mon Nov 23 1998 - 06:58:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US