sql中如何计算百分比 并保留两位小数

2025-04-14 22:22:56
推荐回答(1个)
回答1:

select
convert(decimal(18,2),除数*1.0/被除数)*100
as
百分比
from
表名
decimal(18,2)表示取两位小数