Difference between revisions of "CURRENT TIMESTAMP"

From SQLZOO
Jump to: navigation, search
 
(One intermediate revision by one user 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 18: Line 19:
 
<div class='ht'>
 
<div class='ht'>
 
<div class=params>schema:gisq</div>
 
<div class=params>schema:gisq</div>
With a <code>GROUP BY</code> <code>region</code> statement each region shows up just once.
 
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'>
 
<source lang='sql' class='def e-oracle'>
 
SELECT CURRENT_TIMESTAMP, whn
 
SELECT CURRENT_TIMESTAMP, whn
Line 34: Line 33:
 
   <li>[[%2B(dates) |+(dates) function]]</li>
 
   <li>[[%2B(dates) |+(dates) function]]</li>
 
</ul>
 
</ul>
 +
 +
{{Languages}}

Latest revision as of 17: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