扫码一下
查看教程更方便
time_to_sec()函数 将指定的时间格式的参数转换为秒数。。
time_to_sec()函数语法如下
time_to_sec(time)
将指定的时间格式的参数转换为秒数。
mysql> select time_to_sec('22:23:00');
---------------------------------------------------------
| time_to_sec('22:23:00') |
---------------------------------------------------------
| 80580 |
---------------------------------------------------------
1 row in set (0.00 sec)