If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > In triggers, what is the diff between BEFORE and AFTER

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-04, 15:59
nanou9999 nanou9999 is offline
Registered User
 
Join Date: Jan 2004
Location: Cergy
Posts: 65
Question In triggers, what is the diff between BEFORE and AFTER

In triggers, what is the difference between BEFORE and AFTER ?
Reply With Quote
  #2 (permalink)  
Old 05-22-04, 18:27
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
One trigger fires BEFORE the triggering action, and the other AFTER. So it is generally best to put validation rules in BEFORE triggers, and additional actions such as auditing in AFTER triggers.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On