CONCAT(MOD(@a,60),'秒'))) dt_diff;
Oracle:
[sql] view plain copy
WITH a
AS (SELECT SYSDATE - TRUNC...(SYSDATE) tt
FROM DUAL)
SELECT DECODE (TRUNC (tt, 0), 0, NULL, TRUNC (tt, 0) || '天')...|| DECODE (TRUNC (MOD (tt, 1) * 24, 0),
0, NULL,...TRUNC (MOD (tt, 1) * 24, 0) || '小时')
|| DECODE (TRUNC (MOD (tt * 24, 1) * 60, 0),...0, NULL,
TRUNC (MOD (tt * 24, 1) * 60, 0) || '分