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

Commit59e2bf3

Browse files
committed
Correct UNDER syntax.
1 parent8188a9b commit59e2bf3

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

‎doc/src/sgml/ref/create_table.sgml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.37 2000/12/25 23:15:26 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.38 2000/12/30 19:00:11 petere Exp $
33
Postgres documentation
44
-->
55

@@ -23,15 +23,17 @@ Postgres documentation
2323
<date>2000-03-25</date>
2424
</refsynopsisdivinfo>
2525
<synopsis>
26-
CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replaceable> (
26+
CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replaceable>
27+
[ UNDER <replaceable>inherited_table</replaceable> [, ...] ]
28+
(
2729
<replaceable class="PARAMETER">column</replaceable> <replaceable class="PARAMETER">type</replaceable>
2830
[ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT <replaceable class="PARAMETER">value</replaceable> ]
2931
[<replaceable>column_constraint_clause</replaceable> | PRIMARY KEY } [ ... ] ]
3032
[, ... ]
3133
[, PRIMARY KEY ( <replaceable class="PARAMETER">column</replaceable> [, ...] ) ]
3234
[, CHECK ( <replaceable class="PARAMETER">condition</replaceable> ) ]
3335
[, <replaceable>table_constraint_clause</replaceable> ]
34-
) [ UNDER <replaceable>inherited_table</replaceable> [, ...] ]
36+
)
3537
</synopsis>
3638

3739
<refsect2 id="R2-SQL-CREATETABLE-1">
@@ -58,7 +60,7 @@ CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replacea
5860
<term><replaceable class="PARAMETER">table</replaceable></term>
5961
<listitem>
6062
<para>
61-
The name ofa new class or table to be created.
63+
The name ofthe new table to be created.
6264
</para>
6365
</listitem>
6466
</varlistentry>
@@ -205,7 +207,7 @@ ERROR: DEFAULT: type mismatched
205207
</title>
206208

207209
<para>
208-
<command>CREATE TABLE</command> will enter a newclass ortable
210+
<command>CREATE TABLE</command> will enter a new table
209211
into the current data base. The table will be "owned" by the user issuing the
210212
command.
211213
</para>
@@ -230,18 +232,18 @@ ERROR: DEFAULT: type mismatched
230232

231233
<para>
232234
The optional UNDER
233-
clause specifies a collection ofclass names from which thisclass
235+
clause specifies a collection oftable names from which thistable
234236
automatically inherits all fields. If any inherited field name
235237
appears more than once, Postgres reports an error. Postgres automatically
236-
allows the createdclass to inherit functions onclasses above it in
238+
allows the createdtable to inherit functions ontables above it in
237239
the inheritance hierarchy. Inheritance of functions is done according
238240
to the conventions of the Common Lisp Object System (CLOS).
239241
</para>
240242

241243
<para>
242-
Each new tableor class<replaceable class="PARAMETER">table</replaceable>
243-
is automatically created as a type. Therefore, one or moreinstances
244-
from theclass are automatically a type and can be used in
244+
Each new table <replaceable class="PARAMETER">table</replaceable>
245+
is automatically created as a type. Therefore, one or morerows
246+
from thetable are automatically a type and can be used in
245247
<xref linkend="sql-altertable" endterm="sql-altertable-title">
246248
or other <command>CREATE TABLE</command> statements.
247249
</para>
@@ -1831,16 +1833,6 @@ CREATE TABLE distributors (
18311833
</programlisting>
18321834
</para>
18331835

1834-
<refsect2 id="R2-SQL-CREATETABLE-3">
1835-
<title>
1836-
Notes
1837-
</title>
1838-
<para>
1839-
CREATE TABLE/UNDER is defined by SQL3. Multiple inheritance is a
1840-
<productname>Postgres</productname> language extension.
1841-
</para>
1842-
</refsect2>
1843-
18441836
</refsect1>
18451837

18461838
<refsect1 id="R1-SQL-CREATETABLE-3">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp