73 lines
5.1 KiB
HTML
73 lines
5.1 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="Specify referential constraint rules" />
|
|
<meta name="abstract" content="Referential constraints allow you to specify rules that you want the system to enforce when you delete or update records." />
|
|
<meta name="description" content="Referential constraints allow you to specify rules that you want the system to enforce when you delete or update records." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrce.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrcl.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrcm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrcn.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/addpfcst.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzatc/rzatcgetstartinav.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafykickoff.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="rbaforzahfrck" />
|
|
<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>Specify referential constraint rules</title>
|
|
</head>
|
|
<body id="rbaforzahfrck"><a name="rbaforzahfrck"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Specify referential constraint rules</h1>
|
|
<div><p>Referential constraints allow you to specify rules that you want
|
|
the system to enforce when you delete or update records.</p>
|
|
<div class="section"> <p>To specify the rules you want to enforce with referential constraints,
|
|
follow these steps:</p>
|
|
</div>
|
|
<ol><li><span>Run the Add Physical File Constraint (ADDPFCST) command.</span></li>
|
|
<li><span>Specify the rule that you want to enforce when you delete records
|
|
(the <em>delete rule</em>) by choosing a value for the DLTRULE parameter.</span></li>
|
|
<li><span>Specify the rule that you want to enforce when you update records
|
|
(the <em>update rule</em>) by choosing a value for the UPDRULE parameter.</span></li>
|
|
</ol>
|
|
<div class="section"> <p>You can also add referential constraints using iSeries™ Navigator.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rbaforzahfrcl.htm">Details: Specify referential constraint delete rules</a></strong><br />
|
|
This topic lists the possible values for the DLTRULE parameter. The delete rule specifies the action the system takes when you delete a parent key value. The delete rule does not affect null parent key values.</li>
|
|
<li class="ulchildlink"><strong><a href="rbaforzahfrcm.htm">Details: Specify referential constraint update rules</a></strong><br />
|
|
This topic lists the possible values for the UPDRULE parameter. The UPDRULE parameter identifies the update rule for the constraint relationship between parent and dependent files. The update rule specifies the action the system takes when it attempts to update the parent file.</li>
|
|
<li class="ulchildlink"><strong><a href="rbaforzahfrcn.htm">Details: Specify referential constraint rules—journaling requirements</a></strong><br />
|
|
If you perform insert, update, or delete operations on a file that is associated with a referential constraint and the delete rule, update rule, or both are other than *RESTRICT, you must use journaling.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbaforzahfrce.htm" title="You can add referential constraints on physical files with no more than one member. A referential constraint is a file-level attribute; therefore, you can create the constraint before the member exists.">Add referential constraints</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="../rzatc/rzatcgetstartinav.htm">Get started with iSeries Navigator</a></div>
|
|
<div><a href="../sqlp/rbafykickoff.htm">SQL programming</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="../cl/addpfcst.htm">Add Physical File Constraint (ADDPFCST) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |