sql 统计查询(百分比 保留2位小数)

select a, b, to_char(round(a*100/b, 2)) || '%' as c
from table_name
order by (a/b);

原文地址:https://www.cnblogs.com/xkoko/p/9377553.html