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

73 lines
5.3 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="Control the integrity of your database with constraints" />
<meta name="abstract" content="A constraint is a restriction or limitation placed on a file to ensure that the data in your database remains consistent as you add, change, and remove records. These topics describe how to use constraints to ensure data consistency." />
<meta name="description" content="A constraint is a restriction or limitation placed on a file to ensure that the data in your database remains consistent as you add, change, and remove records. These topics describe how to use constraints to ensure data consistency." />
<meta name="DC.Relation" scheme="URI" content="rbafomanage.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfcod.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfcof.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfcoh.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfcob.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfcoc.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfcon.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="rbaforzahfcoa" />
<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>Control the integrity of your database with constraints</title>
</head>
<body id="rbaforzahfcoa"><a name="rbaforzahfcoa"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Control the integrity of your database with constraints</h1>
<div><p>A <em>constraint</em> is a restriction or limitation
placed on a file to ensure that the data in your database remains consistent
as you add, change, and remove records. These topics describe how to use constraints
to ensure data consistency.</p>
<div class="p"> <ul><li>Unique constraints and primary key constraints let you create enforced
unique keys for a physical file beyond the file access path. </li>
<li> Check constraints provide another check for the validity of your data
by testing the data in an expression. </li>
</ul>
</div>
<p>Primary key and unique constraints can be used as the parent key when adding
a referential constraint.</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbaforzahfcod.htm">Set up constraints for your database</a></strong><br />
You can use physical file constraints to control the integrity
of the data that is maintained in your database. You can also add constraints
using iSeries™ Navigator.</li>
<li class="ulchildlink"><strong><a href="rbaforzahfcof.htm">Remove unique, primary key, or check constraints</a></strong><br />
The Remove Physical File Constraint (RMVPFCST) command allows you to remove a physical file constraint. The full effects of the command depend on the type of constraint you remove and how it is used.</li>
<li class="ulchildlink"><strong><a href="rbaforzahfcoh.htm">Work with a group of constraints</a></strong><br />
The Work with Physical File Constraints (WRKPFCST) command allows you to display and work with a list of the constraints.</li>
<li class="ulchildlink"><strong><a href="rbaforzahfcob.htm">Unique constraints</a></strong><br />
Unique constraints act as controls in a database to ensure that rows are unique.</li>
<li class="ulchildlink"><strong><a href="rbaforzahfcoc.htm">Primary key constraints</a></strong><br />
A primary key constraint is a unique key with special attributes that make the key the primary access path for the file.</li>
<li class="ulchildlink"><strong><a href="rbaforzahfcon.htm">Check constraints</a></strong><br />
You use check constraints to maintain limits on field values so that they conform to your database requirements.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafomanage.htm" title="These topics discuss how to maintain control of database files on your system by managing the files, their descriptions and attributes. Information about how to maintain control over your data to protect it from loss, how to ensure data integrity with constraints, and how to set up trigger events when the data changes is included.">Manage database files</a></div>
</div>
</div>
</body>
</html>