From 45f79cae14998e7f67d39997f241f2ae538ffd81 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Tue, 2 May 2000 20:02:03 +0000 Subject: Fixups in content and markup for 7.0 release. --- doc/src/sgml/ref/create_table.sgml | 66 ++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 35 deletions(-) (limited to 'doc/src/sgml/ref/create_table.sgml') diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 7208242c26..0e77618799 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ @@ -905,13 +905,12 @@ ERROR: Cannot insert a duplicate key into a unique index. REFERENCES Constraint -[ CONSTRAINT name ] REFERENCES -reftable [ ( refcolumn ) ] -[ MATCH matchtype ] -[ ON DELETE action ] -[ ON UPDATE action ] -[ [ NOT ] DEFERRABLE ] -[ INITIALLY checktime ] +[ CONSTRAINT name ] REFERENCES reftable [ ( refcolumn ) ] + [ MATCH matchtype ] + [ ON DELETE action ] + [ ON UPDATE action ] + [ [ NOT ] DEFERRABLE ] + [ INITIALLY checktime ] The REFERENCES constraint specifies a rule that a column @@ -1448,14 +1447,13 @@ CREATE TABLE distributors ( REFERENCES Constraint -[ CONSTRAINT name ] -FOREIGN KEY ( column [, ...] ) REFERENCES -reftable [ ( refcolumn [, ...] ) ] -[ MATCH matchtype ] -[ ON DELETE action ] -[ ON UPDATE action ] -[ [ NOT ] DEFERRABLE ] -[ INITIALLY checktime ] +[ CONSTRAINT name ] FOREIGN KEY ( column [, ...] ) + REFERENCES reftable [ ( refcolumn [, ...] ) ] + [ MATCH matchtype ] + [ ON DELETE action ] + [ ON UPDATE action ] + [ [ NOT ] DEFERRABLE ] + [ INITIALLY checktime ] The REFERENCES constraint specifies a rule that a column value is @@ -1901,7 +1899,7 @@ CREATE TEMPORARY TABLE actors ( Table Constraint definition: -[ CONSTRAINT name ] UNIQUE ( column [, ...] ) +[ CONSTRAINT name ] UNIQUE ( column [, ...] ) [ { INITIALLY DEFERRED | INITIALLY IMMEDIATE } ] [ [ NOT ] DEFERRABLE ] @@ -1911,7 +1909,7 @@ CREATE TEMPORARY TABLE actors ( Column Constraint definition: -[ CONSTRAINT name ] UNIQUE +[ CONSTRAINT name ] UNIQUE [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -1928,7 +1926,7 @@ CREATE TEMPORARY TABLE actors ( included for symmetry with the NOT NULL clause. Since it is the default for any column, its presence is simply noise. -[ CONSTRAINT name ] NULL +[ CONSTRAINT name ] NULL @@ -1941,7 +1939,7 @@ CREATE TEMPORARY TABLE actors ( SQL92 specifies some additional capabilities for NOT NULL: -[ CONSTRAINT name ] NOT NULL +[ CONSTRAINT name ] NOT NULL [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -1965,9 +1963,7 @@ the column. Not our problem... or a domain. - DEFAULT niladic USER function | - niladic datetime function | - NULL +DEFAULT niladic_user_function | niladic_datetime_function | NULL --> @@ -1994,7 +1990,7 @@ the column. Not our problem... as an alternate method for defining a constraint: -CREATE ASSERTION name CHECK ( condition ) +CREATE ASSERTION name CHECK ( condition ) @@ -2005,7 +2001,7 @@ CREATE ASSERTION name CHECK ( condition ) Domain constraint: -[ CONSTRAINT name ] CHECK constraint +[ CONSTRAINT name ] CHECK constraint [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -2015,7 +2011,7 @@ CREATE ASSERTION name CHECK ( condition ) Table constraint definition: -[ CONSTRAINT name ] { PRIMARY KEY ( column, ... ) | FOREIGN KEY constraint | UNIQUE constraint | CHECK constraint } +[ CONSTRAINT name ] { PRIMARY KEY ( column, ... ) | FOREIGN KEY constraint | UNIQUE constraint | CHECK constraint } [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -2025,7 +2021,7 @@ CREATE ASSERTION name CHECK ( condition ) Column constraint definition: -[ CONSTRAINT name ] { NOT NULL | PRIMARY KEY | FOREIGN KEY constraint | UNIQUE | CHECK constraint } +[ CONSTRAINT name ] { NOT NULL | PRIMARY KEY | FOREIGN KEY constraint | UNIQUE | CHECK constraint } [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -2067,8 +2063,8 @@ CREATE ASSERTION name CHECK ( condition ) INITIALLY IMMEDIATE - Check constraint only at the end of the transaction. This - is the default + Check constraint only at the end of the transaction. This + is the default @@ -2076,7 +2072,7 @@ CREATE ASSERTION name CHECK ( condition ) INITIALLY DEFERRED - Check constraint after each statement. + Check constraint after each statement. @@ -2106,7 +2102,7 @@ affect a column or a table. table constraint definition: -[ CONSTRAINT name ] CHECK ( VALUE condition ) +[ CONSTRAINT name ] CHECK ( VALUE condition ) [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -2115,7 +2111,7 @@ affect a column or a table. column constraint definition: -[ CONSTRAINT name ] CHECK ( VALUE condition ) +[ CONSTRAINT name ] CHECK ( VALUE condition ) [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -2125,7 +2121,7 @@ affect a column or a table. domain constraint definition: - [ CONSTRAINT name ] + [ CONSTRAINT name] CHECK ( VALUE condition ) [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -2154,7 +2150,7 @@ ALTER DOMAIN cities Table Constraint definition: -[ CONSTRAINT name ] PRIMARY KEY ( column [, ...] ) +[ CONSTRAINT name ] PRIMARY KEY ( column [, ...] ) [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] @@ -2162,7 +2158,7 @@ ALTER DOMAIN cities Column Constraint definition: -[ CONSTRAINT name ] PRIMARY KEY +[ CONSTRAINT name ] PRIMARY KEY [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] -- cgit v1.2.1