sql like 反向
作者:朱尚 / 日期:2013-12-03 / 分类:MsSql / 浏览:2078
--查找table_a 表中 id 字段中含有"a"或者"b"的记录.
select * from table_a where charindex('a',id)>0 or charindex('b',id)>0
select * from dbo.tbproduct where charindex(',43,',classid)=0 and charindex(',1,',classid)=0
上一篇:sql删除重复记录的数据 只留id最小的那个
下一篇:没有了
本文标签: like sql 反向查询
本文链接:http://www.banzhuan.net/detail/18