DAY/de

From SQLZoo
Kompatibilität
DAY(d)
DBMSOKAlternative
IngresNein EXTRACT(DAY from d)
MySQLJa EXTRACT(DAY from d)
OracleNein TO_CHAR(d,'DD')
PostgreSQLNein EXTRACT(DAY from d)
SQL ServerJa DATEPART(DAY,d)

DAY

Mit DAY wird der Tag aus einem Datumswert ermittelt.

   DAY(d)

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

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

Siehe auch

Language:Project:Language policy [[:{{#invoke:String|sub|DAY/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: Dipsy