|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.29 2001/10/12 00:07:14 tgl Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.30 2001/10/22 18:14:47 petere Exp $ |
3 | 3 | Postgres documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -161,23 +161,22 @@ ALTER TABLE <replaceable class="PARAMETER">table</replaceable>
|
161 | 161 | <para>
|
162 | 162 | <command>ALTER TABLE</command> changes the definition of an existing table.
|
163 | 163 | The <literal>ADD COLUMN</literal> form adds a new column to the table
|
164 |
| - using the same syntax as <xref linkend="SQL-CREATETABLE" |
165 |
| - endterm="SQL-CREATETABLE-title">. |
| 164 | + using the same syntax as <xref linkend="SQL-CREATETABLE">. |
166 | 165 | The <literal>ALTER COLUMN SET/DROP DEFAULT</literal> forms
|
167 | 166 | allow you to set or remove the default for the column. Note that defaults
|
168 | 167 | only apply to subsequent <command>INSERT</command> commands; they do not
|
169 | 168 | cause rows already in the table to change.
|
170 | 169 | The <literal>ALTER COLUMN SET STATISTICS</literal> form allows you to
|
171 | 170 | set the statistics-gathering target for subsequent
|
172 |
| - <xref linkend="sql-analyze" endterm="sql-analyze-title"> operations. |
| 171 | + <xref linkend="sql-analyze"> operations. |
173 | 172 | The <literal>RENAME</literal> clause causes the name of a table or column
|
174 | 173 | to change without changing any of the data contained in
|
175 | 174 | the affected table. Thus, the table or column will
|
176 | 175 | remain of the same type and size after this command is
|
177 | 176 | executed.
|
178 | 177 | The ADD <replaceable class="PARAMETER">table constraint definition</replaceable> clause
|
179 | 178 | adds a new constraint to the table using the same syntax as <xref
|
180 |
| - linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-title">. |
| 179 | + linkend="SQL-CREATETABLE">. |
181 | 180 | The DROP CONSTRAINT <replaceable class="PARAMETER">constraint</replaceable> clause
|
182 | 181 | drops all CHECK constraints on the table (and its children) that match <replaceable class="PARAMETER">constraint</replaceable>.
|
183 | 182 | The OWNER clause changes the owner of the table to the user <replaceable class="PARAMETER">
|
@@ -205,18 +204,17 @@ ALTER TABLE <replaceable class="PARAMETER">table</replaceable>
|
205 | 204 | You can use the <literal>SET DEFAULT</literal> form
|
206 | 205 | of <command>ALTER TABLE</command> to set the default later.
|
207 | 206 | (You may also want to update the already existing rows to the
|
208 |
| - new default value, using <xref linkend="sql-update" |
209 |
| - endterm="sql-update-title">.) |
| 207 | + new default value, using <xref linkend="sql-update">.) |
210 | 208 | </para>
|
211 | 209 |
|
212 | 210 | <para>
|
213 | 211 | Currently only CHECK constraints can be dropped from a table. The RESTRICT
|
214 | 212 | keyword is required, although dependencies are not checked. The CASCADE
|
215 | 213 | option is unsupported. To remove a PRIMARY or UNIQUE constraint, drop the
|
216 |
| - relevant index using the <xref linkend="SQL-DROPINDEX" endterm="SQL-DROPINDEX-TITLE"> command. |
| 214 | + relevant index using the <xref linkend="SQL-DROPINDEX"> command. |
217 | 215 | To remove FOREIGN KEY constraints you need to recreate
|
218 | 216 | and reload the table, using other parameters to the
|
219 |
| - <xref linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-title"> |
| 217 | + <xref linkend="SQL-CREATETABLE"> |
220 | 218 | command.
|
221 | 219 | </para>
|
222 | 220 | <para>
|
|
0 commit comments