基本没有区别,后者可以知道具体的位置。但前者可以做keywords like '%中国%风景%'。

解决方案 »

  1.   

    是不是应该这样解决:
    1。建立索引。
    2。使用charindex,用or连接。
      

  2.   

    肯定是建了好了。create table test(a varchar(100))create index in_test on test(a)
    go
    --写入:select * from test where charindex('aa',a)>0select * from test where a like '%aa%'--按Ctrl+L 看执行计划,鼠标放上,有扫描索引