求sql语句判断小数点位数id price1 2.332 2.32323 2.444 2.225 2.5334545...select * from 表 where price小数点长度大于2查询price字段小数点位数大于2的数[解决办法]
where charindex('.',REVERSE(cast(price as varchar(50))))-1>2