CharIndex()

(case when CharIndex('<img',[newstext])>0 then '1' else '0' end)

 

解释:  在 newstext这个字段列表里面 搜索 具有 '<img'  的字符串,并返回该字符串所在的位置。

posted @ 2013-12-04 15:26  Coding_Yong  阅读(115)  评论(0编辑  收藏  举报