File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes What Is Trigger? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "What Is Trigger?" Watch "What Is Trigger?" New topic
Author

What Is Trigger?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Where can I find the information about what trigger is?
H Johan Lekberg
Greenhorn

Joined: Mar 17, 2003
Posts: 4
Hi,
This is from http://www.mysql.com/documentation/maxdb/a7/41ee1d605911d3a98800a0c9449261/content.htm
Is it what you wanted to know?
Trigger
While database procedures are called explicitly from the programming language of the application, triggers are special procedures that run implicitly on a base table (or a view table based on this base table) after a data manipulation statement has been executed.
The conditions under which a trigger is to be executed can be restricted further.
The trigger is executed for each row to which the SQL statement refers. The trigger can access both the old values (values before update or deletion) and the new values (values after update or insertion) in this row.
A trigger can call further triggers implicitly.
Triggers can be used to check complicated integrity rules, to initiate derived database modifications for the row in question, or to implement complex access protection rules.
The database system provides a language (special SQL syntax) that can be used to define database procedures and triggers.
http://www.mysql.com/documentation/maxdb/a7/41ee1d605911d3a98800a0c9449261/content.htm
 
jQuery in Action, 2nd edition
 
subject: What Is Trigger?