65 lines
3.8 KiB
HTML
65 lines
3.8 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="Details: Add referential constraints" />
|
||
|
<meta name="abstract" content="Here is a list of limitations that apply to referential constraints." />
|
||
|
<meta name="description" content="Here is a list of limitations that apply to referential constraints." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrce.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="rbaforzahfrcf" />
|
||
|
<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>Details: Add referential constraints</title>
|
||
|
</head>
|
||
|
<body id="rbaforzahfrcf"><a name="rbaforzahfrcf"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Details: Add referential constraints</h1>
|
||
|
<div><p>Here is a list of limitations that apply to referential constraints.</p>
|
||
|
<div class="p"><ul><li>A parent file must be a physical file.</li>
|
||
|
<li>A parent file can have a maximum of one member, MAXMBR(1).</li>
|
||
|
<li>A dependent file must be a physical file.</li>
|
||
|
<li>A dependent file can have a maximum of one member, MAXMBR(1).</li>
|
||
|
<li>You can define a constraint when both or either of the dependent and the
|
||
|
parent files have zero members. A constraint cannot be established
|
||
|
unless both files have a member.</li>
|
||
|
<li>A file can have a maximum of one primary key, but might have many unique
|
||
|
constraints.</li>
|
||
|
<li>There is a maximum of 300 constraint relations per file. This maximum
|
||
|
value is the sum of: <ul><li>The referential constraints whether participating as a parent or a dependent,
|
||
|
and whether the constraints are defined or established.</li>
|
||
|
<li>The unique constraints, which includes the primary key constraint.</li>
|
||
|
<li>The check constraints.</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li>Only externally described files are allowed in referential constraints.
|
||
|
Source files are not allowed. Program described files are not allowed.</li>
|
||
|
<li>Files with insert, update, or delete capabilities are not allowed in *RESTRICT
|
||
|
relationships.</li>
|
||
|
<li>Constraint names must be unique in a library.</li>
|
||
|
<li>You cannot add constraints to files in the QTEMP library.</li>
|
||
|
<li>You cannot add a referential constraint where the parent file is in one
|
||
|
ASP and the dependent file is in a different ASP.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<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>
|
||
|
</body>
|
||
|
</html>
|