Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Nitesh.

Asked: July 20, 2016 - 4:37 pm UTC

Last updated: July 20, 2016 - 11:34 pm UTC

Version: 11g

Viewed 1000+ times

You Asked

Sir,
I have 5 same functionality triggers on a single table, let's suppose t1,t2,t3,t4,t5. I want that trigger t3 should execute at first. Is this possible? If yes then how? Please give some explanation also.

Thanks & Regards

and Connor said...

Check out the FOLLOWS clause in triggers.

http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_7004.htm#i2235611

You can then say that (for example):

T2 follows T1
T3 follows T2
T4 follows T3

etc
etc

and hence have any explicit order you like

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

link to FOLLOWS clause

Rajeshwaran, Jeyabal, July 21, 2016 - 1:27 pm UTC

The above link talks about syntax and privileges for creating triggers.

Here is the link for FOLLOWS/PRECEDES clause

http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/create_trigger.htm#CJAEJAFB

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library