📌  相关文章
📜  oracle sql代码示例中如何将数字转换为小时和分钟

📅  最后修改于: 2022-03-11 15:05:04.206000             🧑  作者: Mango

代码示例1
WITH c AS (SELECT 492 AS MINUTES FROM DUAL)
SELECT trim(to_char(trunc(MINUTES / 60), '09')) || ':' ||
       trim(to_char(trunc(mod(abs(MINUTES), 60)), '09')) AS HHMM
FROM c;                                                                -- 08:12