1 <REFENTRY ID="SQL-CURRENT-TIMESTAMP-1">
6 <REFMISCINFO>SQL - Functions</REFMISCINFO>
13 returns the current timestamp, (i.e the
14 date "today" concatenated with time "now").
20 <DATE>1998-04-15</DATE>
26 <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-1">
28 <DATE>1998-04-15</DATE>
44 <ReturnValue>None</ReturnValue>
57 <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-2">
59 <DATE>1998-04-15</DATE>
75 <ReturnValue>Returns "<replaceable class="parameter">today</replaceable>" and "<replaceable class="parameter">now</replaceable>".</ReturnValue>
89 <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-1">
91 <DATE>1998-04-15</DATE>
97 The niladic CURRENT_TIMESTAMP function has a data type of
98 TIMESTAMP and returns the date and local time at which it is run.
101 <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-3">
103 <DATE>1998-04-15</DATE>
109 Refer to the SET TIME ZONE statement for a further description
116 <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-2">
121 Display CURRENT_TIMESTAMP:
124 SELECT CURRENT_TIMESTAMP AS date_and_time;
127 ----------------------
128 1998-03-31 07:41:21-08
132 <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-3">
139 <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-4">
141 <DATE>1998-04-15</DATE>
147 SQL92 specifies some additional capabilities for CURRENT_TIMESTAMP:
159 <ReturnValue>CURRENT_TIMESTAMP [ (<replaceable class="parameter">scale</replaceable>) ]</ReturnValue>
163 The optional scale for CURRENT_TIMESTAMP, if specified, is an
164 unsigned integer representing the number of digits in the
165 optional seconds fraction of the time value represented
179 <!-- Keep this comment at the end of the file
184 sgml-minimize-attributes:nil
185 sgml-always-quote-attributes:t
188 sgml-parent-document:nil
189 sgml-default-dtd-file:"../reference.ced"
190 sgml-exposed-tags:nil
191 sgml-local-catalogs:"/usr/lib/sgml/catalog"
192 sgml-local-ecat-files:nil