从字段a中截取从100开始共200个字符,如果有'坏人'的显示,怎么不行的?a是ntext型
select * from news where charindex('坏人',substring(a, 100,200))>0
------解决思路----------------------
CHARINDEX 不能与 text、ntext 和image.
select * from news where charindex('坏人',substring(cast(a as nvarchar(max)), 100,200))>0