sql包涵查询咋写!求大神!select* from xx where a like %+@ABC+%@ABC 里面包涵 1,2,3,。。。。这查询咋写
sql包涵查询咋写!求大神!
select* from xx where a like '%'+@ABC+'%'
@ABC 里面包涵 1,2,3,。。。。
这查询咋写啊
a字段里面也有1,2,3,。。。
sql
[解决办法]
用charindex
Address包含rd的记录
select* from xx where charindex('rd',Address) >0
[解决办法]
where charindex('谢',a)>0
