Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b99f74

Browse files
committed
Fix typo (add ;)
1 parent2d12bc1 commit3b99f74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎doc/src/sgml/ref/alter_table.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.27 2001/09/07 21:57:53 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.28 2001/09/12 02:13:25 ishii Exp $
33
Postgres documentation
44
-->
55

@@ -280,28 +280,28 @@ ALTER TABLE distributors RENAME TO suppliers;
280280
<para>
281281
To add a check constraint to a table:
282282
<programlisting>
283-
ALTER TABLE distributors ADD CONSTRAINT zipchk CHECK (char_length(zipcode) = 5)
283+
ALTER TABLE distributors ADD CONSTRAINT zipchk CHECK (char_length(zipcode) = 5);
284284
</programlisting>
285285
</para>
286286

287287
<para>
288288
To remove a check constraint from a table and all its children:
289289
<programlisting>
290-
ALTER TABLE distributors DROP CONSTRAINT zipchk
290+
ALTER TABLE distributors DROP CONSTRAINT zipchk;
291291
</programlisting>
292292
</para>
293293

294294
<para>
295295
To add a foreign key constraint to a table:
296296
<programlisting>
297-
ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) REFERENCES addresses(address) MATCH FULL
297+
ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) REFERENCES addresses(address) MATCH FULL;
298298
</programlisting>
299299
</para>
300300

301301
<para>
302302
To add a (multi-column) unique constraint to a table:
303303
<programlisting>
304-
ALTER TABLE distributors ADD CONSTRAINT dist_id_zipcode_key UNIQUE (dist_id, zipcode)
304+
ALTER TABLE distributors ADD CONSTRAINT dist_id_zipcode_key UNIQUE (dist_id, zipcode);
305305
</programlisting>
306306
</para>
307307
</refsect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp