SQL Server 全文索引
2014-10-26 19:51
176 查看
create table Document(
ID int not null,
Name nvarchar(255) not null,
Body nvarchar(max) not null);
go
create unique index uq_ix_for_Document --#这里一定要加一个not null unique的索引下面会用到。没有这个就不可以加全文索引。
on Document(ID);
go
create fulltext catalog ftt_clg_for_Studio
as default;
go
create fulltext index on Document(Body)
key index uq_ix_for_Document
on ftt_clg_for_Studio;
go --#可以看出全文索引是没有名字的。
------------------------------------------------------------------------------------------------------------------
ID int not null,
Name nvarchar(255) not null,
Body nvarchar(max) not null);
go
create unique index uq_ix_for_Document --#这里一定要加一个not null unique的索引下面会用到。没有这个就不可以加全文索引。
on Document(ID);
go
create fulltext catalog ftt_clg_for_Studio
as default;
go
create fulltext index on Document(Body)
key index uq_ix_for_Document
on ftt_clg_for_Studio;
go --#可以看出全文索引是没有名字的。
------------------------------------------------------------------------------------------------------------------
相关文章推荐
- 删除全文索引的方法 SQL server 2005 如何获得数据库里有多少个全文索引。
- Sql server 全文索引 用法示例
- 使用sql server中的全文索引
- SQL server 备份还原带全文索引的 处理方式
- Sql server 全文索引 用法示例
- sql server 2008全文索引干扰词示例
- 学习SQL Server全文索引
- 【转】sql server开启全文索引方法
- 全文索引与普通 sql server 索引的区别
- SQL Server 创建全文索引
- SQL Server 2005全文检索技术在网站上的应用实录 索引
- 全文索引优化sql server 的like查询
- 使用SQL SERVER 2008全文索引的问题
- sql server 全文索引
- SQL Server全文索引
- 使用sql server中的全文索引
- 求高行解决:SQL Server 2008中我建了全文索引速度比用like还慢
- sql server 2008全文索引干扰词示例
- SQL Server 全文索引问题
- 如何获得数据库里有多少个全文索引。删除全文索引的方法 SQL server 2005