當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。