教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> 编程基地 >> SQL >> 实例演示在SQL中启用全文检索 RSS订阅
处理 SSI 文件时出错
实例演示在SQL中启用全文检索
处理 SSI 文件时出错
   如何在SQL中启用全文检索功能?本文将通过实例向你剖折这个问题。这是一个全文索引的一个例子,首先在查询分析器中使用:

 


  use pubs
  go

  --打开数据库全文索引的支持


 execute sp_fulltext_database 'enable'
 go

  --建立全文目录ft_titles


  execute sp_fulltext_catalog 'ft_titles', 'create'
  go

  --为titles表建立全文索引数据元,UPKCL_titleidind是主键所建立的唯一索引,可由sp_help titles得知


  execute sp_fulltext_table 'titles','create', 'ft_titles', 'UPKCL_titleidind'
  go

  --设置全文索引列名


  exec sp_fulltext_column 'titles', 'title', 'add'
  go
  exec sp_fulltext_column 'titles', 'notes', 'add'
  go

  --建立全文索引


  exec sp_fulltext_table 'titles', 'activate'
  go

  --填充全文索引目录


  exec sp_fulltext_catalog 'ft_titles', 'start_full'
  go

  --使用contains和freetext


  select title, notes from titles
  where contains(title, '"computer Cooking"')
  go
  select title, notes from titles
  where freetext(title, 'computer Cooking')
  go
  select title, notes from titles
  where freetext(title, '"computer Cooking"')
  go
  select title, notes from titles
  where contains(title, 'computer')
  go
  select title, notes from titles
  where freetext (*, 'computer')
  go

来源:编程技术-十度教育
作者:
关键字:实例演示
发表日期:2006-10-18 10:36:03

处理 SSI 文件时出错

上一篇:SQL查询语句精华使用简要   下一篇:SQL2000里的数据类型


2008-9-7 2:29:42
本文的相类似文章
  • ADO.NET详细研究(四)--实例演示DataReader基本操作
  • 实例演示:使用ASP生成HTML文件
  • 在学习中进步 在进步中成长 教程中国相随您的成长之路
    华腾联合科技股份有限公司版权所有
    广告联系:Rosibo@163.com