日期:2014-05-18 浏览次数:20488 次
select * from tb where abs(charindex('考究',detail,charindex('不',detail)-10)-charindex('不',detail))<=10
------解决方案--------------------
select * from detail where charindex('考究' , substring(cast(text_col as varchar) , charindex('不',cast(text_col as varchar)) - 10 , 21 )) > 0