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

Commit47c427d

Browse files
committed
docs: improve 'capitals' inheritance example
Adds constraints and improves wording.Reported-by: 2552891@gmail.comDiscussion:https://postgr.es/m/159586122762.680.1361378513036616007@wrigleys.postgresql.orgBackpatch-through: 9.5
1 parent243a3b9 commit47c427d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎doc/src/sgml/advanced.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ CREATE TABLE cities (
616616
);
617617

618618
CREATE TABLE capitals (
619-
state char(2)
619+
state char(2) UNIQUE NOT NULL
620620
) INHERITS (cities);
621621
</programlisting>
622622
</para>
@@ -630,7 +630,8 @@ CREATE TABLE capitals (
630630
<type>text</type>, a native <productname>PostgreSQL</productname>
631631
type for variable length character strings. The
632632
<classname>capitals</classname> table has
633-
an extra column, <structfield>state</structfield>, which shows their states. In
633+
an additional column, <structfield>state</structfield>, which shows its
634+
state abbreviation. In
634635
<productname>PostgreSQL</productname>, a table can inherit from
635636
zero or more other tables.
636637
</para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp