1
1
<!--
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 $
3
3
Postgres documentation
4
4
-->
5
5
@@ -23,7 +23,8 @@ Postgres documentation
23
23
<date>2000-03-25</date>
24
24
</refsynopsisdivinfo>
25
25
<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>
27
28
</synopsis>
28
29
29
30
<refsect2 id="R2-SQL-CREATEVIEW-1">
@@ -44,6 +45,16 @@ CREATE VIEW <replaceable class="PARAMETER">view</replaceable> AS SELECT <replace
44
45
</para>
45
46
</listitem>
46
47
</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>
47
58
<varlistentry>
48
59
<term><replaceable class="parameter">query</replaceable></term>
49
60
<listitem>
@@ -124,7 +135,7 @@ CREATE VIEW vista AS SELECT text 'Hello World'
124
135
</title>
125
136
<para>
126
137
<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
128
139
rewrite retrieve rule is automatically generated to support
129
140
retrieve operations on views.
130
141
</para>
0 commit comments