MYSQL Timestampdiff output formatting last two decimals -
simple question
what best way change output displays last 2 decimals?
select avg(timestampdiff(hour, start_it,start_qa)
so output of '13.2500' displays '13.25'.
thanks help.
normally, in application layer. if insist on doing in database, can use format()
:
select format(avg(timestampdiff(hour, start_it,start_qa), 2)
Comments
Post a Comment