ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbaforzahfrcc.htm

82 lines
4.8 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="reference" />
<meta name="DC.Title" content="Referential integrity terms" />
<meta name="abstract" content="A discussion of referential integrity requires an understanding of several terms. These terms are in an order that might help you understand their relationship to each other." />
<meta name="description" content="A discussion of referential integrity requires an understanding of several terms. These terms are in an order that might help you understand their relationship to each other." />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrca.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="rbaforzahfrcc" />
<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>Referential integrity terms</title>
</head>
<body id="rbaforzahfrcc"><a name="rbaforzahfrcc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Referential integrity terms</h1>
<div><p>A discussion of referential integrity requires an understanding
of several terms. These terms are in an order that might help you understand
their relationship to each other. </p>
<div class="section"><div class="p"><dl><dt class="dlterm">Primary key constraint</dt>
<dd>A field or set of fields in a database file that must be unique, ascending,
and cannot contain null values. The primary key is the primary file access
path. The primary key constraint can be used as the parent key when adding
a referential constraint. A primary key constraint is really a unique constraint
with some special attributes.</dd>
<dt class="dlterm">Unique constraint</dt>
<dd>A field or set of fields in a database file that must be unique, ascending,
and can contain null values.</dd>
<dt class="dlterm">Parent key</dt>
<dd>A field or set of fields in a database file that must be unique, ascending,
and might or might not contain null values. The parent key of the parent file
is used to add a referential constraint to the dependent file. The parent
key must be either a primary key or a unique constraint.</dd>
<dt class="dlterm">Foreign key</dt>
<dd>A field or set of fields in which each non-null value must match a value
in the parent key of the related parent file. <p>The attributes (data type,
length, and so forth) must be the same as the parent key of the parent file.</p>
</dd>
<dt class="dlterm">Parent file</dt>
<dd>The file in a referential constraint relationship that contains the parent
key.</dd>
<dt class="dlterm">Dependent file</dt>
<dd>The file in a referential constraint relationship that contains the foreign
key. The dependent file is dependent on the parent file. That is, for every
non-null value in the foreign key of the dependent file, there must be a corresponding
non-null value in the parent key of the parent file.</dd>
<dt class="dlterm">Check pending</dt>
<dd>The state that occurs when the database does not know with certainty whether
for a referential constraint this is true: for every non-null
value in the foreign key of the dependent file, there must be a corresponding
non-null value in the parent key of the parent file.</dd>
<dt class="dlterm">Delete rule</dt>
<dd>A definition of what action the database should take when there is an
attempt to delete a parent record.</dd>
<dt class="dlterm">Update rule</dt>
<dd>A definition of what action the database should take when there is an
attempt to update a parent record.</dd>
</dl>
</div>
</div>
</div>
<div>
<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>