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

数据库系统

开发平台:

Unix_Linux

  1. <refentry id="CREATETABLEAS">
  2.  <refmeta>
  3.   <refentrytitle>
  4.    CREATE TABLE AS
  5.   </refentrytitle>
  6.   <refmiscinfo>SQL - Language Statements</refmiscinfo>
  7.  </refmeta>
  8.  <refnamediv>
  9.   <refname>
  10.    CREATE TABLE AS
  11.   </refname>
  12.   <refpurpose>
  13.    Creates a new table
  14.   </refpurpose>
  15.  </refnamediv>
  16.  <refsynopsisdiv>
  17.   <refsynopsisdivinfo>
  18.    <date>1998-09-22</date>
  19.   </refsynopsisdivinfo>
  20.   <synopsis>
  21. CREATE TABLE <replaceable>table</replaceable> [ (<replaceable>column</replaceable> [, ...] ) ]
  22.      AS <replaceable>select_clause</replaceable>
  23.   </synopsis>
  24.   
  25.   <refsect2>
  26.    <refsect2info>
  27.     <date>1998-09-22</date>
  28.    </refsect2info>
  29.    <title>
  30.     Inputs
  31.    </title>
  32.    <para>
  33.    
  34.    <variablelist>
  35.     <varlistentry>
  36.      <term><replaceable>table</replaceable></term>
  37.      <listitem>
  38.       <para>
  39.        The name of a new table to be created.
  40.       </para>
  41.      </listitem>
  42.     </varlistentry>
  43.      <varlistentry>
  44.       <term><replaceable>column</replaceable></term>
  45.       <listitem>
  46.        <para>
  47. The name of a column. Multiple column names can be specified using
  48. a comma-delimited list of column names.
  49.        </para>
  50.       </listitem>
  51.      </varlistentry>
  52.      <varlistentry>
  53.       <term><replaceable>select_clause</replaceable></term>
  54.       <listitem>
  55.        <para>
  56. A valid query statement. Refer to SELECT for a description of the
  57. allowed syntax.
  58.        </para>
  59.       </listitem>
  60.      </varlistentry>
  61.     </variablelist>
  62.    </para>
  63.   </refsect2>
  64.   <refsect2>
  65.    <refsect2info>
  66.     <date>1998-09-22</date>
  67.    </refsect2info>
  68.    <title>
  69.     Outputs
  70.    </title>
  71.    <para>
  72.     Refer to <command>CREATE TABLE</command>
  73.     and <command>SELECT</command> for a summary of possible output
  74.     messages.
  75.    </para>
  76.   </refsect2>
  77.  </refsynopsisdiv>
  78.  
  79.  <refsect1>
  80.   <refsect1info>
  81.    <date>1998-09-22</date>
  82.   </refsect1info>
  83.   <title>
  84.    Description
  85.   </title>
  86.   <para>
  87.    <command>CREATE TABLE AS</command> enables a table to be created from the contents of
  88.    an existing table. It has functionality equivalent to <command>SELECT TABLE INTO</command>,
  89.    but with perhaps a more direct syntax.
  90.   </para>
  91.  </refsect1>
  92. </refentry>
  93. <!-- Keep this comment at the end of the file
  94. Local variables:
  95. mode: sgml
  96. sgml-omittag:nil
  97. sgml-shorttag:t
  98. sgml-minimize-attributes:nil
  99. sgml-always-quote-attributes:t
  100. sgml-indent-step:1
  101. sgml-indent-data:t
  102. sgml-parent-document:nil
  103. sgml-default-dtd-file:"../reference.ced"
  104. sgml-exposed-tags:nil
  105. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  106. sgml-local-ecat-files:nil
  107. End:
  108. -->