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

数据库系统

开发平台:

Unix_Linux

  1. <REFENTRY ID="SQL-CURRENT-DATE">
  2.  <REFMETA>
  3.   <REFENTRYTITLE>
  4.    SQL_CURRENT_DATE
  5.   </REFENTRYTITLE>
  6.   <REFMISCINFO>SQL - Functions</REFMISCINFO>
  7.  </REFMETA>
  8.  <REFNAMEDIV>
  9.   <REFNAME>
  10.    CURRENT_DATE
  11.   </REFNAME>
  12.   <REFPURPOSE>
  13. Returns the current date
  14.   </REFPURPOSE>
  15.  <REFSYNOPSISDIV>
  16.   <REFSYNOPSISDIVINFO>
  17.    <DATE>1998-04-15</DATE>
  18.   </REFSYNOPSISDIVINFO>
  19.   <SYNOPSIS>
  20.    CURRENT_DATE
  21.   </SYNOPSIS>
  22.   
  23.   <REFSECT2 ID="R2-SQL-CURRENT-DATE-1">
  24.    <REFSECT2INFO>
  25.     <DATE>1998-04-15</DATE>
  26.    </REFSECT2INFO>
  27.    <TITLE>
  28.     Inputs
  29.    </TITLE>
  30.    <PARA>
  31. None.
  32.   </REFSECT2>
  33.   
  34.   <REFSECT2 ID="R2-SQL-CURRENT-DATE-2">
  35.    <REFSECT2INFO>
  36.     <DATE>1998-04-15</DATE>
  37.    </REFSECT2INFO>
  38.    <TITLE>
  39.     Outputs
  40.    </TITLE>
  41.    <PARA>
  42.        <VARIABLELIST>
  43. <VARLISTENTRY>
  44.  <TERM>
  45. <replaceable>date</replaceable>
  46.  </TERM>
  47.  <LISTITEM>
  48.   <PARA>
  49.   Returns "<replaceable class="parameter">today</replaceable>".
  50.    </VARIABLELIST>
  51.   </REFSECT2>
  52.  </REFSYNOPSISDIV>
  53.  
  54.  <REFSECT1 ID="R1-SQL-CURRENT-DATE-1">
  55.   <REFSECT1INFO>
  56.    <DATE>1998-04-15</DATE>
  57.   </REFSECT1INFO>
  58.   <TITLE>
  59.    Description
  60.   </TITLE>
  61.   <PARA>
  62.    The niladic CURRENT_DATE function has a data type of
  63.    DATE and returns the date at the time that it is run.
  64.   </PARA>
  65.   
  66.   <REFSECT2 ID="R2-SQL-CURRENT-DATE-3">
  67.    <REFSECT2INFO>
  68.     <DATE>1998-04-15</DATE>
  69.    </REFSECT2INFO>
  70.    <TITLE>
  71.     Notes
  72.    </TITLE>
  73.    <PARA>
  74.     Refer to SET DATESTYLE for further information about date format.
  75.    </PARA>
  76.   </REFSECT2>
  77.   
  78.  <REFSECT1 ID="R1-SQL-CURRENT-DATE-2">
  79.   <TITLE>
  80.    Usage
  81.   </TITLE>
  82.   <PARA>
  83.    Insert the date of insertion into a row:
  84.   </PARA>
  85.   <ProgramListing>
  86.    INSERT INTO films
  87.          VALUES ('TM999','Ben Hur',105,CURRENT_DATE,'Action',NULL);
  88.   </ProgramListing>
  89.   
  90.   <PARA>
  91.    Display CURRENT-DATE:
  92.   </PARA>
  93.   <ProgramListing>
  94.    SELECT CURRENT_DATE AS today;
  95.    today
  96.    ------------
  97.    1998-03-31
  98.   </ProgramListing>
  99.  </REFSECT1>
  100.  
  101.  <REFSECT1 ID="R1-SQL-CURRENT-DATE-3">
  102.   <TITLE>
  103.    Compatibility
  104.   </TITLE>
  105.   <PARA>
  106.   </PARA>
  107.   
  108.   <REFSECT2 ID="R2-SQL-CURRENT-DATE-4">
  109.    <REFSECT2INFO>
  110.     <DATE>1998-04-15</DATE>
  111.    </REFSECT2INFO>
  112.    <TITLE>
  113.     SQL92
  114.    </TITLE>
  115.    <PARA>
  116.     Full compatibility.
  117.    </PARA>
  118.   </refsect2>
  119.  </refsect1>
  120. </REFENTRY>
  121. <!-- Keep this comment at the end of the file
  122. Local variables:
  123. mode: sgml
  124. sgml-omittag:t
  125. sgml-shorttag:t
  126. sgml-minimize-attributes:nil
  127. sgml-always-quote-attributes:t
  128. sgml-indent-step:1
  129. sgml-indent-data:t
  130. sgml-parent-document:nil
  131. sgml-default-dtd-file:"../reference.ced"
  132. sgml-exposed-tags:nil
  133. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  134. sgml-local-ecat-files:nil
  135. End:
  136. -->