67 lines
4.9 KiB
HTML
67 lines
4.9 KiB
HTML
|
<?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="task" />
|
||
|
<meta name="DC.Title" content="Add triggers using iSeries Navigator" />
|
||
|
<meta name="abstract" content="Using iSeries Navigator, you can define system triggers and SQL triggers. Additionally, you can enable or disable a trigger on a physical database file." />
|
||
|
<meta name="description" content="Using iSeries Navigator, you can define system triggers and SQL triggers. Additionally, you can enable or disable a trigger on a physical database file." />
|
||
|
<meta name="DC.subject" content=", Navigator, iSeries, adding, trigger, using" />
|
||
|
<meta name="keywords" content=", Navigator, iSeries, adding, trigger, using" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahftrb.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahftra.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafysqltrig.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="rbaforzahftrbopnaddtrig" />
|
||
|
<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>Add triggers using iSeries Navigator</title>
|
||
|
</head>
|
||
|
<body id="rbaforzahftrbopnaddtrig"><a name="rbaforzahftrbopnaddtrig"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Add triggers using iSeries Navigator</h1>
|
||
|
<div><p><span><img src="./delta.gif" alt="Start of change" />Using iSeries™ Navigator, you can define system
|
||
|
triggers and SQL triggers. Additionally, you can enable or disable a trigger
|
||
|
on a physical database file.<img src="./deltaend.gif" alt="End of change" /></span></p>
|
||
|
<div class="section"> <p><img src="./delta.gif" alt="Start of change" />A trigger is a set of actions that run
|
||
|
automatically when a specified change operation is performed on a specified
|
||
|
database file. In this discussion, a table is a physical file. The change
|
||
|
or read operation can be an insert, update, or delete high-level language
|
||
|
statement in an application program, or an SQL INSERT, UPDATE, or DELETE statement.<img src="./deltaend.gif" alt="End of change" /></p>
|
||
|
<p>To
|
||
|
add a trigger, follow these steps:</p>
|
||
|
</div>
|
||
|
<ol><li><img src="./delta.gif" alt="Start of change" /><span>From <span class="keyword">iSeries Navigator</span>,
|
||
|
expand your server <span class="menucascade"><span class="uicontrol">Database</span> > <span class="uicontrol">Schemas</span></span>.</span><img src="./deltaend.gif" alt="End of change" /></li>
|
||
|
<li><span>Click the library that contains the table to which you want to
|
||
|
add the trigger. </span></li>
|
||
|
<li><img src="./delta.gif" alt="Start of change" /><span>Right-click the table to which you want to add the
|
||
|
trigger and click <span class="menucascade"><span class="uicontrol">New</span> > <span class="uicontrol">Trigger</span></span>.</span><img src="./deltaend.gif" alt="End of change" /></li>
|
||
|
<li><img src="./delta.gif" alt="Start of change" /><span>Click <span class="uicontrol">External</span> to add a system
|
||
|
trigger.</span><img src="./deltaend.gif" alt="End of change" /></li>
|
||
|
<li><img src="./delta.gif" alt="Start of change" /><span>Click <span class="uicontrol">SQL</span> to add an SQL trigger.</span><img src="./deltaend.gif" alt="End of change" /></li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbaforzahftrb.htm" title="These topics discuss how to create and work with trigger programs.">Create trigger programs</a></div>
|
||
|
</div>
|
||
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="rbaforzahftra.htm" title="A trigger is a set of actions that run automatically when a specified change or read operation is performed on a specified database file. On iSeries, you define a set of trigger actions in any supported high-level language.">Trigger automatic events in your database</a></div>
|
||
|
<div><a href="../sqlp/rbafysqltrig.htm">SQL triggers</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|