Python语言基础
Python语言进阶
Python数据结构

MySQL sec_to_time()函数

sec_to_time()是MySQL的日期/时间函数。

语法

select sec_to_time(second);

参数:

second: 获取时间的第二个值。

示例1

select sec_to_time(2000);
输出:

MySQL日期时间sec_to_time()函数

示例2

select sec_to_time(40);
输出:

MySQL日期时间sec_to_time()功能
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4