1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>31.20.referential_constraints</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
<link rev="made" href="pgsql-docs@postgresql.org">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.0">
<link rel="start" href="index.html" title="PostgreSQL 8.1.4 Documentation">
<link rel="up" href="information-schema.html" title="Chapter31.The Information Schema">
<link rel="prev" href="infoschema-parameters.html" title="31.19.parameters">
<link rel="next" href="infoschema-role-column-grants.html" title="31.21.role_column_grants">
<link rel="copyright" href="ln-legalnotice.html" title="Legal Notice">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="sect1" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="infoschema-referential-constraints"></a>31.20.<code class="literal">referential_constraints</code></h2></div></div></div>
<p> The view <code class="literal">referential_constraints</code> contains all
referential (foreign key) constraints in the current database that
belong to a table owned by the current user.
</p>
<div class="table">
<a name="id697677"></a><p class="title"><b>Table31.18.<code class="literal">referential_constraints</code> Columns</b></p>
<div class="table-contents"><table summary="referential_constraints Columns" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Data Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td><code class="literal">constraint_catalog</code></td>
<td><code class="literal">sql_identifier</code></td>
<td>Name of the database containing the constraint (always the current database)</td>
</tr>
<tr>
<td><code class="literal">constraint_schema</code></td>
<td><code class="literal">sql_identifier</code></td>
<td>Name of the schema containing the constraint</td>
</tr>
<tr>
<td><code class="literal">constraint_name</code></td>
<td><code class="literal">sql_identifier</code></td>
<td>Name of the constraint</td>
</tr>
<tr>
<td><code class="literal">unique_constraint_catalog</code></td>
<td><code class="literal">sql_identifier</code></td>
<td> Name of the database that contains the unique or primary key
constraint that the foreign key constraint references (always
the current database)
</td>
</tr>
<tr>
<td><code class="literal">unique_constraint_schema</code></td>
<td><code class="literal">sql_identifier</code></td>
<td> Name of the schema that contains the unique or primary key
constraint that the foreign key constraint references
</td>
</tr>
<tr>
<td><code class="literal">unique_constraint_name</code></td>
<td><code class="literal">sql_identifier</code></td>
<td> Name of the unique or primary key constraint that the foreign
key constraint references
</td>
</tr>
<tr>
<td><code class="literal">match_option</code></td>
<td><code class="literal">character_data</code></td>
<td> Match option of the foreign key constraint:
<code class="literal">FULL</code>, <code class="literal">PARTIAL</code>, or
<code class="literal">NONE</code>.
</td>
</tr>
<tr>
<td><code class="literal">update_rule</code></td>
<td><code class="literal">character_data</code></td>
<td> Update rule of the foreign key constraint:
<code class="literal">CASCADE</code>, <code class="literal">SET NULL</code>,
<code class="literal">SET DEFAULT</code>, <code class="literal">RESTRICT</code>, or
<code class="literal">NO ACTION</code>.
</td>
</tr>
<tr>
<td><code class="literal">delete_rule</code></td>
<td><code class="literal">character_data</code></td>
<td> Delete rule of the foreign key constraint:
<code class="literal">CASCADE</code>, <code class="literal">SET NULL</code>,
<code class="literal">SET DEFAULT</code>, <code class="literal">RESTRICT</code>, or
<code class="literal">NO ACTION</code>.
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break">
</div></body>
</html>
|