当前位置: 首页>>编程示例 >>用法及示例精选 >>正文


MySQL sec_to_time()用法及代码示例

sec_to_time() 是 MySQL 日期/时间函数。它用于将给定的秒数转换为时间。

用法

select sec_to_time(second);

参数:

第二:获得时间的第二个值。

例子1

select sec_to_time(2000);

输出:


MySQL Datetime sec_to_time() Function

例子2

select sec_to_time(40);

输出:


MySQL Datetime sec_to_time() Function







相关用法


注:本文由纯净天空筛选整理自 MySQL Date/Time sec_to_time() Function。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。