CURRENT DATE

From SQLZOO
Revision as of 11:08, 16 July 2012 by Connor (Talk | contribs) (Created page with "<table align='right' border='1'> <caption>Compatibility</caption> <tr><th colspan='3'>CURRENT_DATE</th></tr> <tr><td align='center'>'''Engine'''</td><td align='center'>'''OK''...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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 totp

See also