首页 > 数据库技术 > 详细

SQL Server 全文索引

时间:2014-10-26 20:59:37      阅读:280      评论:0      收藏:0      [点我收藏+]

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                                                           --#可以看出全文索引是没有名字的。

 

------------------------------------------------------------------------------------------------------------------

 

SQL Server 全文索引

原文:http://www.cnblogs.com/JiangLe/p/4052611.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!