ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahf_5.4.0.1/rzahftrigcontable.htm

137 lines
9.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Work with triggers and constraints" />
<meta name="abstract" content="Triggers and constraints can be used to manipulate and manage data in your database tables. These links describe different methods for adding and using triggers and constraints." />
<meta name="description" content="Triggers and constraints can be used to manipulate and manage data in your database tables. These links describe different methods for adding and using triggers and constraints." />
<meta name="DC.Relation" scheme="URI" content="rzahfdbadmin.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzahftrigcontable" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Work with triggers and constraints</title>
</head>
<body id="rzahftrigcontable"><a name="rzahftrigcontable"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Work with triggers and constraints</h1>
<div><p>Triggers and constraints can be used to manipulate and manage data
in your database tables. These links describe different methods for adding
and using triggers and constraints.</p>
<p>A trigger is a type of stored procedure program that is automatically called
whenever a specified action is performed on a specific table. Triggers are
useful for keeping audit trails, for detecting exceptional conditions, for
maintaining relationships in the database, and for running applications and
operations that coincide with the change operation.</p>
<p>Constraints are restrictions or limitations that you place on your database.
Constraints are implemented at the table level. You can use constraints to
create referential integrity in your database.</p>
<p>You can work with triggers and constraints using <span class="keyword">iSeries™</span> Navigator,
SQL, or the traditional file interface. The following table shows the available
options for each task. Click the appropriate “X” for more information about
performing the task.</p>
<p>The <span class="keyword">iSeries</span> Navigator tasks
are also documented in the Online help. For more information about accessing <span class="keyword">iSeries</span> Navigator objects and using
Online help, see <a href="../rzatc/rzatccreateobj.htm"><span class="keyword">iSeries</span> Navigator database tasks</a>.</p>
<div class="p">
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th align="left" valign="top" width="25%" id="d0e51">Task</th>
<th align="center" valign="top" width="25%" id="d0e53"><span class="keyword">iSeries</span> Navigator</th>
<th align="center" valign="top" width="25%" id="d0e58">SQL</th>
<th align="center" valign="top" width="25%" id="d0e60">Traditional file interface</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="25%" headers="d0e51 ">Write an external trigger program</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../dbp/rbaforzahftrn.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../cl/addpftrg.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Add an external trigger</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahftrb.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Add an SQL trigger</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafydb2triggers.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "> </td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Write an SQL trigger program</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../dbp/rbaforzahftrb.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafysqltrig.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "> </td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Enable and disable a trigger</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td valign="top" width="25%" headers="d0e58 "> </td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahftrv.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Remove a trigger</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../db2/rbafzmstdropst.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahftrp.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Create a key constraint</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafyconstex.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahfcod.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Remove a key constraint</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafyaddconstraints.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahfcof.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Create a referential constraint</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafyaddor.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahfrce.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Enable and disable a referential constraint</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahfrcy.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Remove a referential constraint</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafyaddor.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahfrc0.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Create a check constraint</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafycheckcon.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahfcod.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Remove a check constraint</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../sqlp/rbafycheckcon.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e60 "><a href="../dbp/rbaforzahfcof.htm">X</a></td>
</tr>
<tr><td valign="top" width="25%" headers="d0e51 ">Manage check pending constraints</td>
<td align="center" valign="top" width="25%" headers="d0e53 "><a href="../rzatc/rzatccheckpend.htm">X</a></td>
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
<td align="center" valign="top" width="25%" headers="d0e60 "> </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahfdbadmin.htm" title="See several topics that can help you to manage your database.">Database administration</a></div>
</div>
</div>
</body>
</html>