这是查询有数字的记录ID
Select ID From Table Where Files Like in ('%0%','%1%','%2%',.........)
这是个很笨的办法
Select * From Table Where ID <> (上面的查询结果就好了)
希望对你有用.
本人初学...
Select ID From Table Where Files Like in ('%0%','%1%','%2%',.........)
这是个很笨的办法
Select * From Table Where ID <> (上面的查询结果就好了)
希望对你有用.
本人初学...
Create Table #T(Column1 varchar(20))
insert #T select '040011'
union all select '010021'
union all select '024综合'
union all select '021不知道'
union all select '031不'
union all select '不3'
union all select '知道'--1:求包含数字,且长度为6的集合(包含了中文)
select * from #T where Column1 not like '%[0-9]%' --select * from #T where Column1 like '%[0-9]%' --and len(Column1)=6
drop table #T
WHERE au_lname LIKE '%[0-9]%' 就可满足你的要求