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 1
1
<!--
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 $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -192,25 +192,25 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
192
192
Usage
193
193
</title>
194
194
<para>
195
- To add a NOT NULL constraint to a column :
195
+ To add a NOT NULL constraint to a domain :
196
196
<programlisting>
197
197
ALTER DOMAIN zipcode SET NOT NULL;
198
198
</programlisting>
199
- To remove a NOT NULL constraint from a column :
199
+ To remove a NOT NULL constraint from a domain :
200
200
<programlisting>
201
201
ALTER DOMAIN zipcode DROP NOT NULL;
202
202
</programlisting>
203
203
</para>
204
204
205
205
<para>
206
- To add a check constraint to a table :
206
+ To add a check constraint to a domain :
207
207
<programlisting>
208
208
ALTER DOMAIN zipcode ADD CONSTRAINT zipchk CHECK (char_length(VALUE) = 5);
209
209
</programlisting>
210
210
</para>
211
211
212
212
<para>
213
- To remove a check constraint from a table and all its children :
213
+ To remove a check constraint from a domain :
214
214
<programlisting>
215
215
ALTER DOMAIN zipcode DROP CONSTRAINT zipchk;
216
216
</programlisting>
You can’t perform that action at this time.
0 commit comments