home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle.server      Oracle Sysadmins question their careers      44,300 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,991 of 44,300   
   Joe Seeley to All   
   ORA-00900: invalid SQL statement on CREA   
   25 Apr 17 10:22:20   
   
   From: joiey.seeley@gmail.com   
      
   I'm trying to create a before insert or update trigger that would update a   
   timestamp any time an update is made to a table.  The following is my query,   
   but this is giving an invalid SQL statement error.   
      
   CREATE OR REPLACE TRIGGER "SCHEMA".TRIGGER_NAME"   
   BEFORE INSERT OR UPDATE ON SCHEMA.TABLENAME   
   FOR EACH ROW   
   BEGIN   
           :new.LASTMODIFIED := sysdate;   
   END;   
   /   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca