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'>''...")
 
Line 27: Line 27:
 
<p>See also</p>
 
<p>See also</p>
 
<ul>
 
<ul>
   <li>[[+(dates) function]]</li>
+
   <li>[[%2B(dates) |+(dates) function]]</li>
 
</ul>
 
</ul>

Revision as of 14:45, 16 July 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'  

With a GROUP BY region 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.

SELECT CURRENT_TIMESTAMP, whn
  FROM eclipse

See also

Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense