Geeks Talk

Prepare for your Next Interview




Trigger Execution Order

This is a discussion on Trigger Execution Order within the Oracle forums, part of the Databases category; I executed Database Trigger execution order example given in HOW TO's for update statement. Before update on table and After update on table are executed irrespective of whether update ...


Go Back   Geeks Talk > Databases > Oracle

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-18-2008
Contributing Member
 
Join Date: Mar 2008
Posts: 81
Thanks: 14
Thanked 3 Times in 3 Posts
babi_geek is on a distinguished road
Trigger Execution Order

I executed Database Trigger execution order example given in HOW TO's for update statement.


Before update on table and After update on table are executed irrespective of whether update statement updates rows or not?

What is the use of firing these two triggers eventhough not even a single row effected? When do we use these two triggers?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-19-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: Trigger Execution Order

If there is no update statment then the trigger is not going to fire.
Reply With Quote
  #3 (permalink)  
Old 06-22-2008
Junior Member
 
Join Date: Oct 2007
Location: Pune
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
raj8in is on a distinguished road
Thumbs up Re: Trigger Execution Order

Trigger Execution Orders are different according to the Trigger u r using.
There are two types of Triggers generaly used.
1. Application Triggers
2.Database trigger.

Each type of trigger (say application trigger or Database trigger)having different execution order.Pls leave message which trigger u r using..
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
what is a trigger? srinu.tenali SQL Server 11 3 Weeks Ago 01:57 AM
trigger jayanth511 SQL 7 06-28-2008 02:37 AM
Trigger goodstudent SQL 2 03-14-2008 07:03 AM
what is trigger amaravadi11 SQL 8 01-23-2008 04:10 PM
Where does the execution stops exactly Geek_Guest SQL 5 07-02-2007 04:05 PM


All times are GMT -4. The time now is 02:31 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved