85 lines
5.6 KiB
HTML
85 lines
5.6 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="Remove unique, primary key, or check constraints" />
|
||
|
<meta name="abstract" content="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." />
|
||
|
<meta name="description" content="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." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforzahfcoa.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/rmvpfcst.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../db2/rbafzmst02.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../rzatc/rzatcgetstartinav.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafykickoff.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="rbaforzahfcof" />
|
||
|
<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>Remove unique, primary key, or check constraints</title>
|
||
|
</head>
|
||
|
<body id="rbaforzahfcof"><a name="rbaforzahfcof"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Remove unique, primary key, or check constraints</h1>
|
||
|
<div><p>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. </p>
|
||
|
<div class="p">To remove a physical file constraint, use the RMVPFCST command. <ul><li>To remove a unique constraint, specify a value of *UNQCST on the Type
|
||
|
parameter.</li>
|
||
|
<li>To remove a primary key constraint, specify a value of *PRIKEY on the
|
||
|
Type parameter.</li>
|
||
|
<li>To remove a check constraint, specify a value of *CHKCST on the Type parameter.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="p">You can specify any of the following values on the Constraint (CST) parameter
|
||
|
for each of the constraint types:<ul><li>CST(*ALL) to remove all of the constraints you specify on the Type parameter.</li>
|
||
|
<li>CST(constraint-name) to remove a specific constraint.</li>
|
||
|
<li>CST(*CHKPND) to remove only those constraints that are in check pending
|
||
|
status.</li>
|
||
|
<li>Use CST(*ALL) with TYPE(*ALL) to remove all constraints from the file.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<p>You can also remove a constraint using Structured Query Language
|
||
|
(SQL) or iSeries™ Navigator.</p>
|
||
|
<div class="section" id="rbaforzahfcof__rbaforzahfcog"><a name="rbaforzahfcof__rbaforzahfcog"><!-- --></a><h4 class="sectiontitle">Considerations for removing constraints</h4><p>If
|
||
|
you remove a primary key or a unique constraint, and the associated access
|
||
|
path is shared by a logical file, the ownership of the shared path transfers
|
||
|
to the logical file. If the access path is not shared, it is removed.</p>
|
||
|
<p>When
|
||
|
you remove a primary key constraint with the RMVPFCST command, the system
|
||
|
sends an inquiry message to determine if the key specifications should be
|
||
|
removed from the file. A reply of 'K' maintains the key specifications in
|
||
|
the file. The file remains keyed. A reply of 'G' indicates that the file will
|
||
|
have an arrival sequence access path when the command completes.</p>
|
||
|
<div class="note"><span class="notetitle">Note:</span> When
|
||
|
you remove a primary key constraint with the SQL ALTER TABLE statement, the
|
||
|
inquiry message is not sent. The key specifications are always removed and
|
||
|
the file has an arrival sequence access path when the ALTER TABLE completes.</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbaforzahfcoa.htm" title="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.">Control the integrity of your database with constraints</a></div>
|
||
|
</div>
|
||
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="../db2/rbafzmst02.htm">DB2 UDB for iSeries SQL Reference</a></div>
|
||
|
<div><a href="../rzatc/rzatcgetstartinav.htm">Get started with iSeries Navigator</a></div>
|
||
|
<div><a href="../sqlp/rbafykickoff.htm">SQL programming</a></div>
|
||
|
</div>
|
||
|
<div class="relref"><strong>Related reference</strong><br />
|
||
|
<div><a href="../cl/rmvpfcst.htm">Remove Physical File Constraint (RMVPFCST) command</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|