• ----:)欢迎访问源码网(:----
    • 首页
    • 博客
    • 学院
    • 下载
    • 论坛
    • 影视
    • 发布源码
    • RSS
    • ITPig
    • 笑话网
    • 百家姓
    • 繁體中文

源码网 - 中国第一源码门户
选择镜像:网通镜像 - 电信主站
  • 首 页
  • 新闻动态
  • 网站运营
  • 网页制作
  • WEB开发
  • 编程开发
  • 图像媒体
  • 操作系统
  • 数据库
  • 服务器
热门搜索 优化 SEO 故事 cms IIS7 MySQL 个人 AdSense 主题推广 | 文章搜索: 高级搜索
会员登录/控制面版您的位置: 学院首页 >> 数据库 >> MSSQL >> 详细内容
 

推荐文章

  • SQL数据库的备份、压缩与SQL数据库数据处理的方法
  • 压缩SQL数据库
 
 

热点文章

  • 安装SQL Server 2005实例环境图解
  • SQL数据库的备份、压缩与SQL数据库数据处理的方法
  • SQL SERVER 2005数据库镜像
  • SQL数据库还原出现错误112(磁盘空间不足)的解决办法
  • Server 2005性能排错
  • 在SQL Server中的关系型数据仓库分区策略
  • 如何使用SQL Server 2000中的XML功能
  • 压缩SQL数据库
  • SQL Server 2000中的SQL语言简介
  • SQLServer删除日志方法
  • SQL精妙语句
  • SQL Server 2000中的SQL语言简介(一)
 
 

相关文章

  • MYSQL,Oracle,SQL数据库在JSP中的驱动
  • 通用SQL数据库查询语句精华使用简介
  • MYSQL,Oracle,SQL数据库在JSP中的驱动
  • 在UNIX服务器上设置Oracle8i全文检索(1)
  • 翻出一篇老文章:php文本站内全文检索
  • 修复断电等损坏的SQL数据库
  • SQL数据库的备份、压缩与SQL数据库数据处理的方法
 
 

百度搜索

 
 

实例演示在SQL数据库中启用全文检索

  • 阅览次数:
  • 文章来源: a hear
  • 原文作者: 不详
  • 整理日期: 2007-04-05
  • 发表评论
  • 字体大小:
  • 小
  • 中
  • 大

 

 

这是一个全文索引的一个例子,首先在查询分析器中使用:

e pubs
 go

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

ute sp_fulltext_database 'enable'
 go

建立全文目录ft_titles

ute sp_fulltext_catalog 'ft_titles', 'create'
go

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

cute 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

上一篇:比AcdSee功能还强大的图片处理、编辑软件,推荐下载!
下一篇:ASP上传漏洞防范
  • 网友评论:
  • 查看所有评论
  • 我要发表评论
您的网名:
留言主题:
你要发表的内容:

 

关于本站 | 广告联系 | 版权声明 | 网站地图 | 发布软件 | 帮助中心 | 源码论坛

Copyright © 2005-2007 CodePub.Com  程序支持:木翼  滇ICP备05005971号