HOUR/de

From SQLZOO
< HOUR
Revision as of 21:11, 21 October 2012 by Peter (Talk | contribs) (Created page with "Category:Deutsch <table align='right' border='1'> <caption>Kompatibilität</caption> <tr><th colspan='3'>HOUR(d)</th></tr> <tr><td align='center'>'''DBMS'''</td><td align=...")

(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-Datums-/Zeitwert 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