对了不知道你的全文索引是怎么建立的下面是我的全文索引你看一看首先在表上建立唯一索引if exists(select name from sysindexes where name='news_title') drop index news.news_title go create unique clustered index news_title on news(number) 然后建立全文索引if (select databaseproperty('master','isfulltextenabled'))=0 exec sp_fulltext_database 'enable' exec sp_fulltext_catalog 'ft_news','create' exec sp_fulltext_table 'news','create','ft_news','news_title' exec sp_fulltext_column 'news','title','add' exec sp_fulltext_table 'news','activate' exec sp_fulltext_catalog 'ft_news','start_full' go 另外每次添加纪录后要重新执行语句 exec sp_fulltext_catalog 'ft_news','start_full' 我是在我们网站的新闻表news上面建立的全文索引没有出现你那样的问题
哈,我早就试过。没用
WHERE PATINDEX('%世界杯%',field1)>0
我按你的也在我的数据库试验了,没有问题的,你写的语句也正确的,所以建议你把你的全文索引删除了重新建立
drop index news.news_title
go
create unique clustered index news_title on news(number)
然后建立全文索引if (select databaseproperty('master','isfulltextenabled'))=0
exec sp_fulltext_database 'enable'
exec sp_fulltext_catalog 'ft_news','create'
exec sp_fulltext_table 'news','create','ft_news','news_title'
exec sp_fulltext_column 'news','title','add'
exec sp_fulltext_table 'news','activate'
exec sp_fulltext_catalog 'ft_news','start_full'
go
另外每次添加纪录后要重新执行语句
exec sp_fulltext_catalog 'ft_news','start_full'
我是在我们网站的新闻表news上面建立的全文索引没有出现你那样的问题