MONTH/de

From SQLZoo
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

Language:Project:Language policy [[:{{#invoke:String|sub|MONTH/de
 |1
 |Expression error: Unrecognised punctuation character "{".
}}|English]]
DataWars, Data Science Practice Projects - LogoDataWars: Practice Data Science/Analysis with +100 Real Life Projects
  • Your server today is: Laa-Laa