Affichage durée en Jour /heure /minute
Date: 10 août 2010 à 11:54:03 UTC
Sujet:


SELECT
TRIM(
DECODE (FLOOR(:DUREEMINUTE/60/24),0,'',LPAD(TRIM(FLOOR(:DUREEMINUTE/(24*60)) ||'J '),3,0)
)
||
DECODE (MOD(FLOOR(:DUREEMINUTE/60),24),0,'',LPAD(TRIM(FLOOR(MOD(:DUREEMINUTE/(24*60),1) *60*24 /60) ||'H '),3,0)
)
||
DECODE (MOD(:DUREEMINUTE,60),0,'00', LPAD(TRIM(FLOOR(MOD((MOD(:DUREEMINUTE/(24*60),1) * 60*24),60)+0.000001) ||'M'),3,0)
)
) AS PAUSE_TEMP
FROM
dual







Cet article provient de SDI Consulting
http://sdiconsulting.fr

L'URL de cet article est:
http://sdiconsulting.fr/modules.php?name=News&file=article&sid=5