#hh24

Oracle 把秒转成时分秒格式(hh24:mm:ss);检测字符串是否是数字;字符串转换为数字

不说废话,贴代码:1CREATEORREPLACEFUNCTIONto_time(secINNUMBER)RETURNVARCHAR2IS2/*把秒转成时分秒格式3authlzpong201/09/164*/5BEGIN6RETURNTRUNC(NVL(sec,0)/3600)||':'||SUBSTR(NUMTODS...