diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2003-07-01 00:04:31 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2003-07-01 00:04:31 +0000 |
| commit | 71e9f3b07f2f993492233dc2fff0566acc70eb64 (patch) | |
| tree | bf63ec576f78d03eeb72a181ac0d47554e695358 /doc/src/sgml/ref | |
| parent | df08f5c0030590980a203b72cdfdba817ff95b30 (diff) | |
Change EXECUTE INTO to CREATE TABLE AS EXECUTE.
Diffstat (limited to 'doc/src/sgml/ref')
| -rw-r--r-- | doc/src/sgml/ref/create_table_as.sgml | 36 | ||||
| -rw-r--r-- | doc/src/sgml/ref/execute.sgml | 23 |
2 files changed, 24 insertions, 35 deletions
diff --git a/doc/src/sgml/ref/create_table_as.sgml b/doc/src/sgml/ref/create_table_as.sgml index d298e1a5ea1..0f648d56b3a 100644 --- a/doc/src/sgml/ref/create_table_as.sgml +++ b/doc/src/sgml/ref/create_table_as.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.13 2003/05/04 00:03:55 tgl Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.14 2003/07/01 00:04:31 petere Exp $ PostgreSQL documentation --> @@ -26,11 +26,12 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name <para> <command>CREATE TABLE AS</command> creates a table and fills it - with data computed by a <command>SELECT</command> command. The - table columns have the names and data types associated with the - output columns of the <command>SELECT</command> (except that you - can override the column names by giving an explicit list of new - column names). + with data computed by a <command>SELECT</command> command or an + <command>EXECUTE</command> that runs a prepared + <command>SELECT</command> command. The table columns have the + names and data types associated with the output columns of the + <command>SELECT</command> (except that you can override the column + names by giving an explicit list of new column names). </para> <para> @@ -73,7 +74,9 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name <para> The name of a column in the new table. If column names are not provided, they are taken from the output column names of the - query. + query. If the table is created out of an + <command>EXECUTE</command> command, a column name list can + currently not be specified. </para> </listitem> </varlistentry> @@ -82,10 +85,12 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name <term><replaceable>query</replaceable></term> <listitem> <para> - A query statement (that is, a <command>SELECT</command> - command). Refer to - <xref linkend="sql-select" endterm="sql-select-title"> - for a description of the allowed syntax. + A query statement (that is, a <command>SELECT</command> command + or an <command>EXECUTE</command> command that runs a prepared + <command>SELECT</command> command). Refer to <xref + linkend="sql-select" endterm="sql-select-title"> or <xref + linkend="sql-execute" endterm="sql-execute-title">, + respectively, for a description of the allowed syntax. </para> </listitem> </varlistentry> @@ -96,9 +101,11 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name <title>Diagnostics</title> <para> - Refer to <xref linkend="sql-createtable" endterm="sql-createtable-title"> and - <xref linkend="sql-select" endterm="sql-select-title"> - for a summary of possible output messages. + Refer to <xref linkend="sql-createtable" + endterm="sql-createtable-title">, <xref linkend="sql-select" + endterm="sql-select-title">, and <xref linkend="sql-execute" + endterm="sql-execute-title"> for a summary of possible output + messages. </para> </refsect1> @@ -131,6 +138,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name <simplelist type="inline"> <member><xref linkend="sql-createtable" endterm="sql-createtable-title"></member> <member><xref linkend="sql-createview" endterm="sql-createview-title"></member> + <member><xref linkend="sql-execute" endterm="sql-execute-title"></member> <member><xref linkend="sql-select" endterm="sql-select-title"></member> <member><xref linkend="sql-selectinto" endterm="sql-selectinto-title"></member> </simplelist> diff --git a/doc/src/sgml/ref/execute.sgml b/doc/src/sgml/ref/execute.sgml index f4b0a062fc8..7704b8ce27b 100644 --- a/doc/src/sgml/ref/execute.sgml +++ b/doc/src/sgml/ref/execute.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/ref/execute.sgml,v 1.4 2003/04/26 23:56:51 petere Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/ref/execute.sgml,v 1.5 2003/07/01 00:04:31 petere Exp $ PostgreSQL documentation --> @@ -16,7 +16,7 @@ PostgreSQL documentation <refsynopsisdiv> <synopsis> -EXECUTE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable class="PARAMETER">parameter</replaceable> [, ...] ) ] [ INTO [ TEMPORARY | TEMP ] <replaceable class="PARAMETER">table</replaceable> ] +EXECUTE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable class="PARAMETER">parameter</replaceable> [, ...] ) ] </synopsis> </refsynopsisdiv> @@ -41,13 +41,6 @@ EXECUTE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable c </para> <para> - Like <command>SELECT INTO</command>, <command>EXECUTE</command> can - store the results of executing a query into a newly-created - table, by specifying an <literal>INTO</> clause. For more information on this behavior, - see <xref linkend="sql-selectinto" endterm="sql-selectinto-title">. - </para> - - <para> For more information on the creation and usage of prepared statements, see <xref linkend="sql-prepare" endterm="sql-prepare-title">. </para> @@ -78,18 +71,6 @@ EXECUTE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable c </para> </listitem> </varlistentry> - - <varlistentry> - <term><replaceable class="PARAMETER">table</replaceable></term> - <listitem> - <para> - The name of the table in which to store the results of executing - the statement (if it is a <command>SELECT</command>). If no - table is specified, the results are returned to the client (as - normal). - </para> - </listitem> - </varlistentry> </variablelist> </refsect1> |
