DBA > Job Interview Questions > DERBY Java Database FAQs

How to access Before and After Rows ?

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

How to access Before and After Rows ?

Many trigger actions need to access the values of the rows being changed. Such trigger actions need to know one or both of the following:

* the "before" values of the rows being changed (their values before the database event that caused the trigger to fire)
* the "after" values of the rows being changed (the values to which the database event is setting them)

Derby provides transition variables and transition tables for a trigger action to access these values.

(Continued on next question...)

Other Job Interview Questions