(case when CharIndex('<img',[newstext])>0 then '1' else '0' end)
解释: 在 newstext这个字段列表里面 搜索 具有 '<img' 的字符串,并返回该字符串所在的位置。