HOUR/de

From SQLZOO
< HOUR
Revision as of 21:17, 21 October 2012 by Peter (Talk | contribs)

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

Sprache: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense