Mysql
 sql >> Database >  >> RDS >> Mysql

Come formattare l'ora in '2:34 hrs', '0:34 hrs' ecc in MySQL

Sì, avvolgilo in TIME_FORMAT() :

SELECT operator_no, log_in_time,
       TIME_FORMAT(
           TIMEDIFF(log_in_time, log_out_time),
           '%H:%i hrs'
       ) AS Duration