HOUR/de
Jump to navigation
Jump to search
HOUR(d) | ||
---|---|---|
DBMS | OK | Alternative |
Ingres | Nein | EXTRACT(HOUR from d) |
MySQL | Ja | EXTRACT(HOUR from d) |
Oracle | Nein | TO_CHAR(d,'HH24') |
PostgreSQL | Nein | EXTRACT(HOUR from d) |
SQL Server | Ja | 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: | [[:{{#invoke:String|sub|HOUR/de
|1 |Expression error: Unrecognized punctuation character "{".}}|English]] |
---|