表字段:
aa int
bb int
cc char
select cc from table where aa/bb > =0.95
这里面aa/bb的结果还是Int类型的么?
以前没有遇到过,请问一下,该怎么处理?
------解决方案--------------------
或者
select cc from table where cast(aa as numeric(18,2))/bb > =0.95
------解决方案--------------------
select cc from table where cast(aa as decimal(18,2))/bb > =0.95