diff --git a/doc/src/sgml/ref/alter_domain.sgml b/doc/src/sgml/ref/alter_domain.sgml index 7562267c0d2..4735d424059 100644 --- a/doc/src/sgml/ref/alter_domain.sgml +++ b/doc/src/sgml/ref/alter_domain.sgml @@ -1,5 +1,5 @@ @@ -192,25 +192,25 @@ ALTER DOMAIN domain Usage - To add a NOT NULL constraint to a column: + To add a NOT NULL constraint to a domain: ALTER DOMAIN zipcode SET NOT NULL; - To remove a NOT NULL constraint from a column: + To remove a NOT NULL constraint from a domain: ALTER DOMAIN zipcode DROP NOT NULL; - To add a check constraint to a table: + To add a check constraint to a domain: ALTER DOMAIN zipcode ADD CONSTRAINT zipchk CHECK (char_length(VALUE) = 5); - To remove a check constraint from a table and all its children: + To remove a check constraint from a domain: ALTER DOMAIN zipcode DROP CONSTRAINT zipchk;