Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 431 Bytes

File metadata and controls

28 lines (19 loc) · 431 Bytes

second

description

Syntax

INT SECOND(DATETIME date)

获得日期中的秒的信息,返回值范围从0-59。

参数为Date或者Datetime类型

example

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

keyword

SECOND