--外层表修改格式,添加“%” select tag, concat(avg_play_progress, '%') as avg_play_progress from ( --中间表计算 select tag, round(avg(case when TIMESTAMPDIFF(SECOND, start_time, end_time) <= duration then TIMESTAMPDIFF(SECOND, start_time, end_time) / duration else 1 end) * 100, 2) as avg_pl...