Full-Text Index 入门

1、Full-Text Index 服务
首先确保安装了Full-Text Index服务并启动该服务

2、为某个表启用Full-Text Index
在Management Studio中选中某个Table,点右键,Full Text Index->Define Full-Text Index
选择需要作Full-Text的字段,
定义更新方式/周期

3、使用Full-Text Index查询
select * from person.address where contains(ADdressLine1, 'SHOE')

4、在没有设置Full-Text Index的Table以及Column上不支持 contains查询

Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'person.address' because it is not full-text indexed.

Cannot use a CONTAINS or FREETEXT predicate on column 'AddressLine1' because it is not full-text indexed.

你可能感兴趣的:(职场,index,where,休闲,Full-Text)