65 lines
4.7 KiB
HTML
65 lines
4.7 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="concept" />
|
||
|
<meta name="DC.Title" content="Add referential constraints" />
|
||
|
<meta name="abstract" content="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." />
|
||
|
<meta name="description" content="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." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrca.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrch.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrci.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrcj.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrck.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrcf.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrcg.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="rbaforzahfrce" />
|
||
|
<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 referential constraints</title>
|
||
|
</head>
|
||
|
<body id="rbaforzahfrce"><a name="rbaforzahfrce"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Add referential constraints</h1>
|
||
|
<div><p>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.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="rbaforzahfrch.htm">Before you add referential constraints</a></strong><br />
|
||
|
Before you can add referential constraints, you must make sure that you meet some conditions.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbaforzahfrci.htm">Define the parent file in a referential constraint</a></strong><br />
|
||
|
A parent file must be a physical file with a maximum of one member. You can create a new file or use an existing file when you define the parent file.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbaforzahfrcj.htm">Define the dependent file in a referential constraint</a></strong><br />
|
||
|
A dependent file must be a physical file with a maximum of one member. You can create a dependent file as you do any physical file or use an existing file.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbaforzahfrck.htm">Specify referential constraint rules</a></strong><br />
|
||
|
Referential constraints allow you to specify rules that you want the system to enforce when you delete or update records.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbaforzahfrcf.htm">Details: Add referential constraints</a></strong><br />
|
||
|
Here is a list of limitations that apply to referential constraints.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbaforzahfrcg.htm">Details: Avoid constraint cycles</a></strong><br />
|
||
|
A <em>constraint cycle</em> is a sequence of constraint relationships
|
||
|
in which a descendent of a parent file becomes a parent to the original parent
|
||
|
file. You can use constraint cycles in a DB2 Universal Database™ for iSeries™ database,
|
||
|
however, you should avoid using them.</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbaforzahfrca.htm" title="These topics discuss how to use referential constraints in your database to ensure that it contains only valid data.">Ensure data integrity with referential constraints</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|