SECOND/de

From SQLZOO
< SECOND
Revision as of 22:37, 21 October 2012 by Peter (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Kompatibilität
SECOND(d)
DBMSOKAlternative
IngresJa EXTRACT(SECOND from d)
MySQLJa EXTRACT(SECOND from d)
OracleNein TO_CHAR(d,'SS')
PostgreSQLNein EXTRACT(SECOND from d)
SQL ServerJa DATEPART(SECOND,d)

SECOND

SECOND ermittelt die Sekunde aus einem Datums-/Zeitwert.

   SECOND(d)

In diesem Beispiel wird die Sekunde aus dem whn-Datum ermittelt.

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

Siehe auch

Sprache: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense