Files
doris/docs/en/sql-manual/sql-functions/date-time-functions/second.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +08:00

1.2 KiB

title, language
title language
second en

second

description

Syntax

INT SECOND(DATETIME date)

Returns second information in the time type, ranging from 0,59

The parameter is Date or Datetime type

example

mysql> select second('2018-12-31 23:59:59');
+-----------------------------+
| second('2018-12-31 23:59:59') |
+-----------------------------+
|                          59 |
+-----------------------------+

keyword

SECOND