select top 10 * from demotable where content like '%keyword%'
每次得到查询结果都非常慢,请问有什么好的方法能提高插叙速度,怎么做? 谢谢!
------解决方案-------------------- 你用全模糊查询,加索引都没用了,
SQL code
select top 10 * from demotable where charindex(keyword,content)>0
------解决方案--------------------
SQL code
select top 10 *
from demotable
where content like 'keyword%'
--or
select top 10 *
from demotable
where charindex('keyword',content)>0
------解决方案--------------------