Thread: New to Triggers
View Single Post

   
  #2 (permalink)  
Old 02-28-2008, 07:41 PM
Anith Sen
 
Posts: n/a
Default Re: New to Triggers

If you already have defaults, there is no need for triggers. You can use the
DEFAULT keyword in your INSERT & UPDATE DMLs like:

INSERT tbl (..., Modby, ModDate) VALUES (..., DEFAULT, DEFAULT);

UPDATE tbl
SET ....
ModBy = DEFAULT,
ModDate = DEFAULT
WHERE ...;

--
-- Anith
( Please reply to newsgroups only )


Reply With Quote