File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.5 2002/12/06 05:07:16 momjian Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.6 2002/12/06 16:40:13 momjian Exp $
33PostgreSQL documentation
44-->
55
@@ -192,25 +192,25 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
192192 Usage
193193 </title>
194194 <para>
195- To add a NOT NULL constraint to a column :
195+ To add a NOT NULL constraint to a domain :
196196 <programlisting>
197197ALTER DOMAIN zipcode SET NOT NULL;
198198 </programlisting>
199- To remove a NOT NULL constraint from a column :
199+ To remove a NOT NULL constraint from a domain :
200200 <programlisting>
201201ALTER DOMAIN zipcode DROP NOT NULL;
202202 </programlisting>
203203 </para>
204204
205205 <para>
206- To add a check constraint to a table :
206+ To add a check constraint to a domain :
207207 <programlisting>
208208ALTER DOMAIN zipcode ADD CONSTRAINT zipchk CHECK (char_length(VALUE) = 5);
209209 </programlisting>
210210 </para>
211211
212212 <para>
213- To remove a check constraint from a table and all its children :
213+ To remove a check constraint from a domain :
214214 <programlisting>
215215ALTER DOMAIN zipcode DROP CONSTRAINT zipchk;
216216 </programlisting>
You can’t perform that action at this time.
0 commit comments