34,874
社区成员
发帖
与我相关
我的任务
分享
整个库的表都搜一便。
EXEC sp_MSForeachtable @command=N'
select * from [?]
',@whereand='masseq like ''200%''';
select * from tb where masseq like '200%'
或select * from tb where left(masseq,3)='200'select * from tb where charindex('200',masseq )>0select * from table where left(maseq,len(200))='200'select * from tb where masseq like '200%'
select * from tb where masseq like '200%'
select * from table where substring(masseq,1,3) = '200'