select_into.sgml
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:2k
源码类别:

数据库系统

开发平台:

Unix_Linux

  1. <refentry id="SQL-SELECTINTO">
  2.  <refmeta>
  3.   <refentrytitle>
  4. SELECT INTO
  5.   </refentrytitle>
  6.   <refmiscinfo>SQL - Language Statements</refmiscinfo>
  7.  </refmeta>
  8.  <refnamediv>
  9.   <refname>
  10. SELECT INTO
  11.   </refname>
  12.   <refpurpose>
  13. Create a new table from an existing table or view
  14.   </refpurpose></refnamediv>
  15.  <refsynopsisdiv>
  16.   <refsynopsisdivinfo>
  17.    <date>1998-09-22</date>
  18.   </refsynopsisdivinfo>
  19.   <synopsis>
  20. SELECT [ ALL | DISTINCT ] <replaceable class="PARAMETER">expression</replaceable> [ AS <replaceable class="PARAMETER">name</replaceable> ] [, ...]
  21.     INTO [TEMP] [ TABLE ] <replaceable class="PARAMETER">new_table</replaceable> ]
  22.     [ FROM <replaceable class="PARAMETER">table</replaceable> [<replaceable class="PARAMETER">alias</replaceable>] [, ...] ]
  23.     [ WHERE <replaceable class="PARAMETER">condition</replaceable> ]
  24.     [ GROUP BY <replaceable class="PARAMETER">column</replaceable> [, ...] ]
  25.     [ HAVING <replaceable class="PARAMETER">condition</replaceable> [, ...] ]
  26.     [ { UNION [ALL] | INTERSECT | EXCEPT } <replaceable class="PARAMETER">select</replaceable>]
  27.     [ ORDER BY <replaceable class="PARAMETER">column</replaceable> [ ASC | DESC ] [, ...] ]
  28.     [ FOR UPDATE [OF class_name...]]
  29.     [ LIMIT count [OFFSET|, count]]
  30.   </synopsis>
  31.   
  32.   <refsect2 id="R2-SQL-SELECTINTO-1">
  33.    <refsect2info>
  34.     <date>1998-09-22</date>
  35.    </refsect2info>
  36.    <title>
  37.     Inputs
  38.    </title>
  39.    <para>
  40. All input fields are described in detail for SELECT.
  41.    </para>
  42.   </refsect2>
  43.   <refsect2 id="R2-SQL-SELECTINTO-2">
  44.    <refsect2info>
  45.     <date>1998-09-22</date>
  46.    </refsect2info>
  47.    <title>
  48.     Outputs
  49.    </title>
  50.    <para>
  51. All output fields are described in detail for SELECT.
  52.    </para>
  53.   </refsect2>
  54.  </refsynopsisdiv>
  55.  <refsect1 id="R1-SQL-SELECTINTO-1">
  56.   <refsect1info>
  57.    <date>1998-09-22</date>
  58.   </refsect1info>
  59.   <title>
  60.    Description
  61.   </title>
  62.   <para>
  63.    SELECT INTO creates a new table from the results of a query. Typically, this
  64.    query draws data from an existing table, but any SQL query is allowed.
  65.    <note>
  66. <para>
  67.  CREATE TABLE AS is functionally equivalent to the SELECT INTO command.
  68. </para>
  69.    </note>
  70.   </para>
  71.  </refsect1>
  72. </refentry>
  73. <!-- Keep this comment at the end of the file
  74. Local variables:
  75. mode: sgml
  76. sgml-omittag:
  77. sgml-shorttag:t
  78. sgml-minimize-attributes:nil
  79. sgml-always-quote-attributes:t
  80. sgml-indent-step:1
  81. sgml-indent-data:t
  82. sgml-parent-document:nil
  83. sgml-default-dtd-file:"../reference.ced"
  84. sgml-exposed-tags:nil
  85. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  86. sgml-local-ecat-files:nil
  87. End:
  88. -->