日期:2014-05-20  浏览次数:20665 次

模糊查询的问题
select a.*,b.海塘名称 from 海塘保滩工程情况表 
a(nolock) left join 海塘属性表 b(nolock) 
on a.海塘ID = b.海塘ID where 坝头位置坐标Y like '%686%'

对float型不能模糊查询,为什么,请高手

------解决方案--------------------
是数值.. 你只能用大于或者小于.
 如果你非要这种方式
用下面就可以了
convert(nvarchar(10),坝头位置坐标Y) like '%686%'