Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
59e2bf3c
Commit
59e2bf3c
authored
Dec 30, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct UNDER syntax.
parent
8188a9be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
20 deletions
+12
-20
doc/src/sgml/ref/create_table.sgml
doc/src/sgml/ref/create_table.sgml
+12
-20
No files found.
doc/src/sgml/ref/create_table.sgml
View file @
59e2bf3c
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.3
7 2000/12/25 23:15:26
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.3
8 2000/12/30 19:00:11
petere Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -23,7 +23,9 @@ Postgres documentation
...
@@ -23,7 +23,9 @@ Postgres documentation
<date>2000-03-25</date>
<date>2000-03-25</date>
</refsynopsisdivinfo>
</refsynopsisdivinfo>
<synopsis>
<synopsis>
CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replaceable> (
CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replaceable>
[ UNDER <replaceable>inherited_table</replaceable> [, ...] ]
(
<replaceable class="PARAMETER">column</replaceable> <replaceable class="PARAMETER">type</replaceable>
<replaceable class="PARAMETER">column</replaceable> <replaceable class="PARAMETER">type</replaceable>
[ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT <replaceable class="PARAMETER">value</replaceable> ]
[ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT <replaceable class="PARAMETER">value</replaceable> ]
[<replaceable>column_constraint_clause</replaceable> | PRIMARY KEY } [ ... ] ]
[<replaceable>column_constraint_clause</replaceable> | PRIMARY KEY } [ ... ] ]
...
@@ -31,7 +33,7 @@ CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replacea
...
@@ -31,7 +33,7 @@ CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replacea
[, PRIMARY KEY ( <replaceable class="PARAMETER">column</replaceable> [, ...] ) ]
[, PRIMARY KEY ( <replaceable class="PARAMETER">column</replaceable> [, ...] ) ]
[, CHECK ( <replaceable class="PARAMETER">condition</replaceable> ) ]
[, CHECK ( <replaceable class="PARAMETER">condition</replaceable> ) ]
[, <replaceable>table_constraint_clause</replaceable> ]
[, <replaceable>table_constraint_clause</replaceable> ]
)
[ UNDER <replaceable>inherited_table</replaceable> [, ...] ]
)
</synopsis>
</synopsis>
<refsect2 id="R2-SQL-CREATETABLE-1">
<refsect2 id="R2-SQL-CREATETABLE-1">
...
@@ -58,7 +60,7 @@ CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replacea
...
@@ -58,7 +60,7 @@ CREATE [ TEMPORARY | TEMP ] TABLE <replaceable class="PARAMETER">table</replacea
<term><replaceable class="PARAMETER">table</replaceable></term>
<term><replaceable class="PARAMETER">table</replaceable></term>
<listitem>
<listitem>
<para>
<para>
The name of
a new class or
table to be created.
The name of
the new
table to be created.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -205,7 +207,7 @@ ERROR: DEFAULT: type mismatched
...
@@ -205,7 +207,7 @@ ERROR: DEFAULT: type mismatched
</title>
</title>
<para>
<para>
<command>CREATE TABLE</command> will enter a new
class or
table
<command>CREATE TABLE</command> will enter a new table
into the current data base. The table will be "owned" by the user issuing the
into the current data base. The table will be "owned" by the user issuing the
command.
command.
</para>
</para>
...
@@ -230,18 +232,18 @@ ERROR: DEFAULT: type mismatched
...
@@ -230,18 +232,18 @@ ERROR: DEFAULT: type mismatched
<para>
<para>
The optional UNDER
The optional UNDER
clause specifies a collection of
class names from which this class
clause specifies a collection of
table names from which this table
automatically inherits all fields. If any inherited field name
automatically inherits all fields. If any inherited field name
appears more than once, Postgres reports an error. Postgres automatically
appears more than once, Postgres reports an error. Postgres automatically
allows the created
class to inherit functions on class
es above it in
allows the created
table to inherit functions on tabl
es above it in
the inheritance hierarchy. Inheritance of functions is done according
the inheritance hierarchy. Inheritance of functions is done according
to the conventions of the Common Lisp Object System (CLOS).
to the conventions of the Common Lisp Object System (CLOS).
</para>
</para>
<para>
<para>
Each new table
or class
<replaceable class="PARAMETER">table</replaceable>
Each new table <replaceable class="PARAMETER">table</replaceable>
is automatically created as a type. Therefore, one or more
instance
s
is automatically created as a type. Therefore, one or more
row
s
from the
class
are automatically a type and can be used in
from the
table
are automatically a type and can be used in
<xref linkend="sql-altertable" endterm="sql-altertable-title">
<xref linkend="sql-altertable" endterm="sql-altertable-title">
or other <command>CREATE TABLE</command> statements.
or other <command>CREATE TABLE</command> statements.
</para>
</para>
...
@@ -1831,16 +1833,6 @@ CREATE TABLE distributors (
...
@@ -1831,16 +1833,6 @@ CREATE TABLE distributors (
</programlisting>
</programlisting>
</para>
</para>
<refsect2 id="R2-SQL-CREATETABLE-3">
<title>
Notes
</title>
<para>
CREATE TABLE/UNDER is defined by SQL3. Multiple inheritance is a
<productname>Postgres</productname> language extension.
</para>
</refsect2>
</refsect1>
</refsect1>
<refsect1 id="R1-SQL-CREATETABLE-3">
<refsect1 id="R1-SQL-CREATETABLE-3">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment