select 300 / (301) *100
查询结果:0,由于数值是INT类型,无法得到小数点的结果。怎么整?分母加0.0
select 300 / (301 + 0.0) *100
查询结果:99.667700
标签:300,0.0,SQL,server,301,100,除法 From: https://www.cnblogs.com/bdqczhl/p/17153039.html
select 300 / (301) *100
查询结果:0,由于数值是INT类型,无法得到小数点的结果。怎么整?分母加0.0
select 300 / (301 + 0.0) *100
查询结果:99.667700
标签:300,0.0,SQL,server,301,100,除法 From: https://www.cnblogs.com/bdqczhl/p/17153039.html