mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Clearify CHECK handling of unknown test values.
Karl O. Pinc
This commit is contained in:
parent
4da36853ce
commit
24a1fafc8d
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.80 2004/03/22 16:18:50 tgl Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.81 2004/05/19 23:10:43 momjian Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -383,10 +383,13 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
|
|||||||
<para>
|
<para>
|
||||||
The <literal>CHECK</> clause specifies an expression producing a
|
The <literal>CHECK</> clause specifies an expression producing a
|
||||||
Boolean result which new or updated rows must satisfy for an
|
Boolean result which new or updated rows must satisfy for an
|
||||||
insert or update operation to succeed. A check constraint
|
insert or update operation to succeed. Expressions evaluating
|
||||||
specified as a column constraint should reference that column's
|
to TRUE or UNKNOWN succeed. Should any row of an insert or
|
||||||
value only, while an expression appearing in a table constraint
|
update operation produce a FALSE result an error exception is
|
||||||
may reference multiple columns.
|
raised and the insert or update does not alter the database. A
|
||||||
|
check constraint specified as a column constraint should
|
||||||
|
reference that column's value only, while an expression
|
||||||
|
appearing in a table constraint may reference multiple columns.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user