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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -