HOUR/de

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

HOUR

HOUR ermittelt die Stunde aus einem Datums-/Zeitwert.

   HOUR(d)

In diesem Beispiel wird die Stunde aus dem whn-Datumswert ermittelt.

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

Siehe auch

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