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

67 lines
4.0 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="Constraint states" />
<meta name="abstract" content="A file can be in one of three constraint states. In two of the states, the constraint can be enabled or disabled." />
<meta name="description" content="A file can be in one of three constraint states. In two of the states, the constraint can be enabled or disabled." />
<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="rbaforzahfrcu" />
<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>Constraint states</title>
</head>
<body id="rbaforzahfrcu"><a name="rbaforzahfrcu"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Constraint states</h1>
<div><p>A file can be in one of three constraint states. In two of the
states, the constraint can be enabled or disabled. </p>
<div class="p"><ul><li><strong>Non-constraint relationship state</strong>. No referential constraint exists
for a file in this state. If a constraint relationship once existed for the
file, all information about it has been removed.</li>
<li><strong>Defined state</strong>. A constraint relationship is defined between a dependent
and a parent file. It is not necessary to create the member in either file
to define a constraint relationship. In the defined state, the constraint
can be: <ul><li>Defined and enabled. A defined and enabled constraint relationship is
for definition purposes only. The rules for the constraint are not enforced.
A constraint in this state remains enabled when it goes to the established
state.</li>
<li>Defined and disabled. A defined constraint relationship that
is disabled is for definition purposes only. The rules for the constraint
are not enforced. A constraint in this state remains disabled when it goes
to the established state.</li>
</ul>
</li>
<li><strong>Established state</strong>. The dependent file has a constraint relationship
with the parent file. A constraint will be established only if the attributes
match between the foreign and parent key. Members must exist for both files.
In the established state, the constraint can be: <ul><li>Established and enabled. An established constraint relationship that is
enabled causes the database to enforce referential integrity.</li>
<li>Established and disabled. An established constraint relationship that
is disabled directs the database to not enforce referential integrity.</li>
</ul>
</li>
</ul>
</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>