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

Commit548512a

Browse files
committed
Document column-name-list option of CREATE VIEW ... which has been there
awhile, but the man page didn't know it.
1 parent458bc44 commit548512a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

‎doc/src/sgml/ref/create_view.sgml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_view.sgml,v 1.10 2001/01/13 23:58:55 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_view.sgml,v 1.11 2001/08/10 23:49:20 tgl Exp $
33
Postgres documentation
44
-->
55

@@ -23,7 +23,8 @@ Postgres documentation
2323
<date>2000-03-25</date>
2424
</refsynopsisdivinfo>
2525
<synopsis>
26-
CREATE VIEW <replaceable class="PARAMETER">view</replaceable> AS SELECT <replaceable class="PARAMETER">query</replaceable>
26+
CREATE VIEW <replaceable class="PARAMETER">view</replaceable> [ ( <replaceable
27+
class="PARAMETER">column name list</replaceable> ) ] AS SELECT <replaceable class="PARAMETER">query</replaceable>
2728
</synopsis>
2829

2930
<refsect2 id="R2-SQL-CREATEVIEW-1">
@@ -44,6 +45,16 @@ CREATE VIEW <replaceable class="PARAMETER">view</replaceable> AS SELECT <replace
4445
</para>
4546
</listitem>
4647
</varlistentry>
48+
<varlistentry>
49+
<term><replaceable class="parameter">column name list</replaceable></term>
50+
<listitem>
51+
<para>
52+
An optional list of names to be used for columns of the view.
53+
If given, these names override the column names that would be
54+
deduced from the SQL query.
55+
</para>
56+
</listitem>
57+
</varlistentry>
4758
<varlistentry>
4859
<term><replaceable class="parameter">query</replaceable></term>
4960
<listitem>
@@ -124,7 +135,7 @@ CREATE VIEW vista AS SELECT text 'Hello World'
124135
</title>
125136
<para>
126137
<command>CREATE VIEW</command> will define a view of a table.
127-
This view is not physically materialized.Specifically, a query
138+
The view is not physically materialized.Instead, a query
128139
rewrite retrieve rule is automatically generated to support
129140
retrieve operations on views.
130141
</para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp