nverchar或float类型 转换成百分比

ltrim(cast(([数据库字段])*100 as decimal(18,2)))+'%'      

decimal(18,2) 2是小数位数

猜你喜欢

转载自jieshuideyu-163-com.iteye.com/blog/1839874