zoukankan
html css js c++ java
创建SQL Server全文索引的步骤
--
使用指定的数据库
use
Fredoc
--
enable 数据库的全文检索
sp_fulltext_database
'
enable
'
--
建立全文目录 FT_Fredoc
sp_fulltext_catalog
'
FT_Fredoc
'
,
'
create
'
--
在全文目录中注册需要全文索引的表
sp_fulltext_table
'
TArchive
'
,
'
create
'
,
'
FT_Fredoc
'
,
'
PK_TDocuments
'
--
设置全文索引列名
sp_fulltext_column
'
TArchive
'
,
'
FContent
'
,
'
add
'
--
填充全文索引目录
execute
sp_fulltext_catalog
'
FT_Fredoc
'
,
'
start_full
'
GO
WHILE
FulltextCatalogProperty
(
'
FT_Fredoc
'
,
'
PopulateStatus
'
)
<>
0
BEGIN
WAITFOR
DELAY
'
0:0:30
'
--
--如果全文目录正处于填充状态,则等待30秒后再检测一次
END
--
测试
SELECT
FContent
FROM
TArchive
where
contains
(FContent,
'
Sql
'
)
查看全文
相关阅读:
HTTP协议中GET、POST和HEAD的介绍
Django model 字段类型清单
MySQL的菜鸟级操作
windows7下将Cygwin加入右键菜单,并从当前目录打开
数组指针和指针数组的区别
const引用与非const引用
printf("