SECOND/de

From SQLZOO
Jump to navigation Jump to 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

Language:Project:Language policy [[:{{#invoke:String|sub|SECOND/de
 |1
 |Expression error: Unrecognized punctuation character "{".
}}|English]]
DataWars, Data Science Practice Projects - LogoDataWars: Practice Data Science/Analysis with +100 Real Life Projects