Difference between revisions of "CURRENT DATE"

From SQLZOO
Jump to: navigation, search
 
Line 9: Line 9:
 
<tr><td align='left'>sqlserver</td><td>No</td><td>[[CURRENT_TIMESTAMP |CONVERT(CHAR(10),CURRENT_TIMESTAMP,126)]]</td></tr>
 
<tr><td align='left'>sqlserver</td><td>No</td><td>[[CURRENT_TIMESTAMP |CONVERT(CHAR(10),CURRENT_TIMESTAMP,126)]]</td></tr>
 
</table>
 
</table>
 +
 
<h1>CURRENT_DATE</h1>
 
<h1>CURRENT_DATE</h1>
 
<p>CURRENT_DATE returns today's date.</p>
 
<p>CURRENT_DATE returns today's date.</p>
Line 36: Line 37:
 
   <li>[[%2B(dates) |+(date) function]]</li>
 
   <li>[[%2B(dates) |+(date) function]]</li>
 
</ul>
 
</ul>
 +
 +
{{Languages}}

Latest revision as of 17:33, 21 October 2012

Compatibility
CURRENT_DATE
EngineOKAlternative
ingresYesYou must cast when using DBD::Ingres
mysqlYes
oracleYes
postgresYes
sqlserverNoCONVERT(CHAR(10),CURRENT_TIMESTAMP,126)

CURRENT_DATE

CURRENT_DATE returns today's date.

   CURRENT_DATE -> '2006-12-31'
SELECT CURRENT_TIMESTAMP, whn
  FROM eclipse
SELECT CAST(CURRENT_DATE AS DATE),wk
  FROM gisq.totp
SELECT CAST(CURRENT_DATE AS DATE),wk
  FROM totp

See also

Language: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense