全文索引 CONTAINS(text字段, '要查询的词' )

解决方案 »

  1.   

    sql server 2005 全文索引:
    简单示例:
    create fulltext catalog 全文索引目录名 in path '路径'
    create fulltext index on 表名(列名) key index 唯一唯引名 on 全文索引目录名
    --查询
    select * from 表名 where contains(列名,'zzz')  
    select * from 表名 where contains(列名,'"xx" or "yy"')  
      

  2.   

    全文检索没用过的话,去google找下吧。