SEC_TO_TIME() convert to java.sql.Time error

Posted by chun on Stack Overflow See other posts from Stack Overflow or by chun
Published on 2010-04-09T12:46:52Z Indexed on 2010/04/09 12:53 UTC
Read the original article Hit count: 237

Filed under:
|

hi I have a aggregate column present the microsecond, a report(with jasper) have to show HH:mm:ss of this indicator

What I did is using SEC_TO_TIME(sum(col)/1000) , but when mapping to java.sql.Time, i doesn't work when the value of hour in result pass over 24(ex:36:33:33)

Then I think another way, not using sec_to_time, just mapping the microsecond as Bigdecimal, but dunno what java class shoud i use to format date as the default format of hh:mm:ss is limit to 24...?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about java