Oracle SQL Hours Difference between dates in HH:MM:SS
问题 I already have a string to calculate the difference in hours between 2 dates which I'd got from stack: 24 * (to_date(to_char(stp.created_date,'YYYY-MM-DD hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss') - (to_date(to_char(adhh.created_date,'YYYY-MM-DD hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss'))) diff_hours But I want to see this as HH:MM:SS Here's 2 dates/times as example: STP date 26-Feb-18 12.59.21 ADHH date 26-Feb-18 12.59.32 So I want it to say difference is 00:00:11 (11 seconds) at the moment I get the