字段:id,content
根据id来判断content中有没有<img,如何实现?

解决方案 »

  1.   

    select * from tablename where content like '%<img%'
      

  2.   

    没说清楚我的意思,如果我已经得出了所有内容content的话,怎么对其进行判断?
      

  3.   

    就向content1,content2,....contentN;如何判断呢?
      

  4.   

    if(content1.indexof("<img>")>=0)
      Response.Write("有");
    else
      Response.Write("无");
      

  5.   


    select id,content from my_info where patindex('%IMG src=%',content)>0
      

  6.   

    差个左括号:
    select id,content from my_info where patindex('%<IMG src=%',content)>0
    估计是ASP里的,给你加上个 src,更准确些.