MONTH/de

From SQLZOO
< MONTH
Revision as of 22:25, 21 October 2012 by Peter (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Kompatibilität
MONTH(d)
DBMSOKAlternative
IngresJa EXTRACT(MONTH from d)
MySQLJa EXTRACT(MONTH from d)
OracleNein TO_CHAR(d,'MM')
PostgreSQLNein EXTRACT(MONTH from d)
SQL ServerJa DATEPART(MONTH,d)

MONTH

MONTH ermittelt den Monat aus einem Datumswert.

   MONTH(d)

In diesem Beispiel wird der Monat aus dem whn-Datum ermittelt.

SELECT EXTRACT(MONTH FROM whn) AS v
      ,whn
      ,wht
  FROM eclipse
SELECT TO_CHAR(whn,'MONTH') AS v
      ,whn
      ,wht
  FROM gisq.eclipse
SELECT MONTH(whn) AS v, whn, wht
  FROM eclipse

Siehe auch

Sprache: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense