SQL Server2000全文检索应用实例
来源:互联网 发布:美国最新api数据 编辑:程序博客网 时间:2024/04/28 08:49
以下是SQL Server2000全文检索的具体应用:
exec sp_fulltext_database 'enable'
select databaseproperty('pubs','IsFulltextEnables')
if (select databaseproperty('pubs','IsFulltextEnables')) is null
exec sp_fulltext_database 'enable'
--建立全文目录FT_pubs
exec sp_fulltext_catalog 'FT_Pubs','create'
--为titles表建立全文索引数据元
exec sp_fulltext_table 'titles','create','FT_Pubs','UPKCL_titleidind'
--设置全文索引列名
exec sp_fulltext_column 'titles','title','add'
exec sp_fulltext_column 'titles','notes','add'
--建立全文索引
exec sp_fulltext_table 'titles','activate','FT_Pubs','UPKCL_titleidind'
--填充全文索引目录
exec sp_fulltext_catalog 'FT_Pubs','start_full'
go
--检查全文目录填充情况
while FulltextCatalogProperty('FT_Pubs','PopulateStatus')<>0
begin
waitfor delay '00:00:30'
end
--查询title列或notes列中包含有database或computer字符串的图书名称
select * from titles where contains(title,'database')
or contains(notes,'database') or contains(title,'computer')
or contains(notes,'computer')
exec sp_fulltext_table 'authors','create','FT_Pubs','UPKCL_auidind'
exec sp_fulltext_column 'authors','au_lname','add'
exec sp_fulltext_column 'authors','au_fname','add'
exec sp_fulltext_table 'authors','activate','FT_Pubs','UPKCL_auidind'
exec sp_fulltext_catalog 'FT_Pubs','start_full'
while FulltextCatalogProperty('FT_Pubs','PopulateStatus')<>0
begin
waitfor delay '00:00:30'
end
select * from authors where freetext(au_lname,'White Blue Green Smith')
select databasepropertyex('pubs','IsAutoClose')
select databasepropertyex('pubs','IsAutoCreateStatistics')
select databasepropertyex('pubs','IsAutoShrink')
select databasepropertyex('pubs','IsCloseCursorsOnCommitEnabled')
select databasepropertyex('pubs','IsLocalCursorsDefault')
select databasepropertyex('pubs','Recovery')
select databasepropertyex('pubs','IsAnsiNullDefault')
exec sp_configure
exec sp_dboption
select fulltextserviceproperty('IsFulltextInstalled')
set showplan_all on
go
- SQL Server2000全文检索应用实例
- SQL Server2000的全文检索
- SQL 全文检索应用
- solr全文检索应用实例
- sql server2000 入门应用实例
- SQL Server2000全文索引心得
- lucene全文检索应用
- SQL中的全文检索
- SQL中的全文检索
- SQL中的全文检索
- SQL中的全文检索
- sql server全文检索
- SQL中的全文检索
- SQL中的全文检索
- 全文检索Sql测试
- SQL Server 全文检索
- SQL 全文检索
- SQL Server全文检索
- 历史数据转移
- java.lang.OutOfMemoryError: Java heap space
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- 利用java Api解析XML
- 推荐的书:windows程序调试
- SQL Server2000全文检索应用实例
- 2.3 TcpListener同步基础服务器开发
- 什么是公平
- Wireless Router with a 3G/UMTS/HSDPA dongle (OPENWRT 无线网络连接)
- ServletContext与ServletConfig的深度分析
- 解决该页正在访问其控制范围之外的数据。这有些危险。是否继续?
- Lazy Function Definition Pattern
- 利用Java API对字符串进行加密解密(DES加密算法)
- 海量数据性能优化措施