Difference between revisions of "CURRENT TIMESTAMP"

From SQLZOO
Jump to: navigation, search
(Created page with "<table align='right' border='1'> <caption>Compatibility</caption> <tr><th colspan='3'>CURRENT_TIMESTAMP</th></tr> <tr><td align='center'>'''Engine'''</td><td align='center'>''...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
<tr><td align='left'>sqlserver</td><td>Yes</td><td></td></tr>
 
<tr><td align='left'>sqlserver</td><td>Yes</td><td></td></tr>
 
</table>
 
</table>
 +
 
<h1>CURRENT_TIMESTAMP</h1>
 
<h1>CURRENT_TIMESTAMP</h1>
 
<p>CURRENT_TIMESTAMP returns the current date and time. </p>
 
<p>CURRENT_TIMESTAMP returns the current date and time. </p>
Line 16: Line 17:
 
</pre>
 
</pre>
  
<div class='qu'>
+
<div class='ht'>
With a <code>GROUP BY</code> <code>region</code> statement each region shows up just once.
+
<div class=params>schema:gisq</div>
The MAX column gives the "largest" name in the region in the context of strings this is the last name alphabetically.
+
<source lang='sql' class='def e-oracle'>
 +
SELECT CURRENT_TIMESTAMP, whn
 +
  FROM gisq.eclipse
 +
</source>
 
<source lang='sql' class='def'>
 
<source lang='sql' class='def'>
 
SELECT CURRENT_TIMESTAMP, whn
 
SELECT CURRENT_TIMESTAMP, whn
Line 27: Line 31:
 
<p>See also</p>
 
<p>See also</p>
 
<ul>
 
<ul>
   <li>[[+(dates) function]]</li>
+
   <li>[[%2B(dates) |+(dates) function]]</li>
 
</ul>
 
</ul>
 +
 +
{{Languages}}

Latest revision as of 18:50, 21 October 2012

Compatibility
CURRENT_TIMESTAMP
EngineOKAlternative
ingresYes
mysqlYes
oracleYes
postgresYes
sqlserverYes

CURRENT_TIMESTAMP

CURRENT_TIMESTAMP returns the current date and time.

 CURRENT_TIMESTAMP -> '2006-12-31 18:03:44'  
schema:gisq
SELECT CURRENT_TIMESTAMP, whn
  FROM gisq.eclipse
SELECT CURRENT_TIMESTAMP, whn
  FROM eclipse

See also

Language: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense