方法1:先转换成字符串,然后判断小数点后是否都为0 方法2:用取余数来判断
select case when round(200/100.0,2)=cast(round(200/100.0,2) as int) then 1 else 0 end
value%1=0 --> integer
27,582
社区成员
68,544
社区内容
加载中
试试用AI创作助手写篇文章吧