SECOND(time)

SECOND(time) 返回 time 对应的秒数

mysql> SELECT SECOND(‘10:05:03‘);
+--------------------+
| SECOND(‘10:05:03‘) |
+--------------------+
|                  3 |
+--------------------+
时间: 2024-11-07 00:41:04