git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 458bc44)
Document column-name-list option of CREATE VIEW ... which has been there
2001年8月10日 23:49:20 +0000 (23:49 +0000)
2001年8月10日 23:49:20 +0000 (23:49 +0000)
awhile, but the man page didn't know it.


diff --git a/doc/src/sgml/ref/create_view.sgml b/doc/src/sgml/ref/create_view.sgml
index 8132e41d425368b366448aa1f44e094f239cecc3..f13dee1dd425d702c39f65482c829bacc644b791 100644 (file)
--- a/doc/src/sgml/ref/create_view.sgml
+++ b/doc/src/sgml/ref/create_view.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_view.sgml,v 1.10 2001年01月13日 23:58:55 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_view.sgml,v 1.11 2001年08月10日 23:49:20 tgl Exp $
Postgres documentation
-->
@@ -23,7 +23,8 @@ Postgres documentation
<date>2000年03月25日</date>
</refsynopsisdivinfo>
<synopsis>
-CREATE VIEW <replaceable class="PARAMETER">view</replaceable> AS SELECT <replaceable class="PARAMETER">query</replaceable>
+CREATE VIEW <replaceable class="PARAMETER">view</replaceable> [ ( <replaceable
+class="PARAMETER">column name list</replaceable> ) ] AS SELECT <replaceable class="PARAMETER">query</replaceable>
</synopsis>
<refsect2 id="R2-SQL-CREATEVIEW-1">
@@ -44,6 +45,16 @@ CREATE VIEW <replaceable class="PARAMETER">view</replaceable> AS SELECT <replace
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><replaceable class="parameter">column name list</replaceable></term>
+ <listitem>
+ <para>
+ An optional list of names to be used for columns of the view.
+ If given, these names override the column names that would be
+ deduced from the SQL query.
+ </para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><replaceable class="parameter">query</replaceable></term>
<listitem>
@@ -124,7 +135,7 @@ CREATE VIEW vista AS SELECT text 'Hello World'
</title>
<para>
<command>CREATE VIEW</command> will define a view of a table.
- This view is not physically materialized. Specifically, a query
+ The view is not physically materialized. Instead, a query
rewrite retrieve rule is automatically generated to support
retrieve operations on views.
</para>
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /