SECOND
SECOND(d) | ||
---|---|---|
Engine | OK | Alternative |
ingres | Yes | EXTRACT(SECOND from d) |
mysql | Yes | EXTRACT(SECOND from d) |
oracle | No | TO_CHAR(d,'SS') |
postgres | No | EXTRACT(SECOND from d) |
sqlserver | Yes | DATEPART(SECOND,d) |
SECOND
SECOND allows you to retrieve the second from a date.
SECOND(d)
In this example you get the second from the date field whn.
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
See also
Language: | English • Deutsch |
---|