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

数据库系统

开发平台:

Unix_Linux

  1. <REFENTRY ID="SQL-CURRENT-TIMESTAMP">
  2.  <REFMETA>
  3.   <REFENTRYTITLE>
  4.    SQL_CURRENT_TIMESTAMP
  5.   </REFENTRYTITLE>
  6.   <REFMISCINFO>SQL - Functions</REFMISCINFO>
  7.  </REFMETA>
  8.  <REFNAMEDIV>
  9.   <REFNAME>
  10.    CURRENT_TIMESTAMP
  11.   </REFNAME>
  12.   <REFPURPOSE>
  13.    Returns the current date and time
  14.   </REFPURPOSE>
  15.   
  16.   
  17.  <REFSYNOPSISDIV>
  18.   <REFSYNOPSISDIVINFO>
  19.    <DATE>1998-04-15</DATE>
  20.   </REFSYNOPSISDIVINFO>
  21.   <synopsis>
  22.   CURRENT_TIMESTAMP 
  23.  </SYNOPSIS>
  24.   
  25.   <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-1">
  26.    <REFSECT2INFO>
  27.     <DATE>1998-04-15</DATE>
  28.    </REFSECT2INFO>
  29.    <TITLE>
  30.     Inputs
  31.    </TITLE>
  32.    <PARA>
  33. None.
  34.   </REFSECT2>
  35.   
  36.   <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-2">
  37.    <REFSECT2INFO>
  38.     <DATE>1998-04-15</DATE>
  39.    </REFSECT2INFO>
  40.    <TITLE>
  41.     Outputs
  42.    </TITLE>
  43.    <PARA>
  44.        <VARIABLELIST>
  45. <VARLISTENTRY>
  46.  <TERM>
  47. <replaceable>timestamp</replaceable>
  48.  <LISTITEM>
  49.   <PARA>
  50.   Returns "<replaceable class="parameter">today</replaceable>" and "<replaceable class="parameter">now</replaceable>".
  51.    </VARIABLELIST>
  52.   </REFSECT2>
  53.  </REFSYNOPSISDIV>
  54.  
  55.  <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-1">
  56.   <REFSECT1INFO>
  57.    <DATE>1998-04-15</DATE>
  58.   </REFSECT1INFO>
  59.   <TITLE>
  60.    Description
  61.   </TITLE>
  62.   <PARA>
  63.    The niladic CURRENT_TIMESTAMP function has a data type of
  64.    TIMESTAMP and returns the date and local time at which it is run.
  65.   </PARA>
  66.   
  67.   <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-3">
  68.    <REFSECT2INFO>
  69.     <DATE>1998-04-15</DATE>
  70.    </REFSECT2INFO>
  71.    <TITLE>
  72.     Notes
  73.    </TITLE>
  74.    <PARA>
  75.     Refer to the SET TIME ZONE statement for a further description
  76.     of local time.
  77.    </PARA>
  78.    
  79.    
  80.   </REFSECT2>
  81.   
  82.  <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-2">
  83.   <TITLE>
  84.    Usage
  85.   </TITLE>
  86.   <PARA>
  87.    Display CURRENT_TIMESTAMP:
  88.   </PARA>
  89.   <ProgramListing>
  90.    SELECT CURRENT_TIMESTAMP AS date_and_time;
  91.    date_and_time
  92.    ----------------------
  93.    1998-03-31 07:41:21-08
  94.   </ProgramListing>
  95.  </REFSECT1>
  96.  
  97.  <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-3">
  98.   <TITLE>
  99.    Compatibility
  100.   </TITLE>
  101.   <PARA>
  102.   </PARA>
  103.   
  104.   <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-4">
  105.    <REFSECT2INFO>
  106.     <DATE>1998-04-15</DATE>
  107.    </REFSECT2INFO>
  108.    <TITLE>
  109.     SQL92
  110.    </TITLE>
  111.    <PARA>
  112.    SQL92 specifies some additional capabilities for CURRENT_TIMESTAMP:
  113.    </PARA>
  114.    
  115.    <VARIABLELIST>
  116.     <VARLISTENTRY>
  117.      <TERM>
  118.      </TERM>
  119.      <LISTITEM>
  120.       <PARA>
  121.        <VARIABLELIST>
  122. <VARLISTENTRY>
  123.  <TERM>
  124.   <ReturnValue>CURRENT_TIMESTAMP [ (<replaceable class="parameter">scale</replaceable>) ]</ReturnValue>
  125.  </TERM>
  126.  <LISTITEM>
  127.   <PARA>
  128.    The optional scale for CURRENT_TIMESTAMP, if specified, is an
  129.    unsigned integer representing the number of digits in the
  130.    optional seconds fraction of the time value represented
  131.    by the function.
  132.   </PARA>
  133.  </LISTITEM>
  134. </VARLISTENTRY>
  135.        </VARIABLELIST>
  136.       </para>
  137.      </LISTITEM>
  138.     </VARLISTENTRY>
  139.    </VARIABLELIST>
  140.   </refsect2>
  141.  </refsect1>
  142. </REFENTRY>
  143. <!-- Keep this comment at the end of the file
  144. Local variables:
  145. mode: sgml
  146. sgml-omittag:t
  147. sgml-shorttag:t
  148. sgml-minimize-attributes:nil
  149. sgml-always-quote-attributes:t
  150. sgml-indent-step:1
  151. sgml-indent-data:t
  152. sgml-parent-document:nil
  153. sgml-default-dtd-file:"../reference.ced"
  154. sgml-exposed-tags:nil
  155. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  156. sgml-local-ecat-files:nil
  157. End:
  158. -->