dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
As a very simple answer to a very broad question - yes.
The INSERT Trigger would be activated after each insert,
the trigger would be a simple COUNT(*)
and when COUNT(*) > 100
then signal.
The signal (which would be a negative sql code) would inhibit the insertion of the 101st ROW.
by the way, every DB2 Vsn? SQL Reference & the DB2 Vsn? Application Programming and SQL Guide
has chapters devoted to Triggers.
If you start using proper terminology, you searches will be more successful. |
|