有爱的天空,处处都是暖阳阳的。

博客园 首页 新随笔 联系 订阅 管理

2011年4月28日 #

摘要: 全文索引的一个例子,在查询分析器中使用:usepubsgo--打开数据库全文索引的支持executesp_fulltext_database'enable'go--建立全文目录ft_titlesexecutesp_fulltext_catalog'ft_titles','create'go--为titles表建立全文索引数据元,UPKCL_titleidind是主键所建立的唯一索引,可由sp_helptitles得知executesp_fulltext_table'titles','create','ft_ 阅读全文
posted @ 2011-04-28 11:12 荣耀轩辕 阅读(206) 评论(0) 推荐(0) 编辑

摘要: http://msdn.microsoft.com/zh-cn/library/ms177652%28v=SQL.90%29.aspx 阅读全文
posted @ 2011-04-28 10:54 荣耀轩辕 阅读(162) 评论(0) 推荐(0) 编辑

摘要: 1.select top m * from tablename where id not in (select top n id from tablename)2.select top m * into 临时表(或表变量) from tablename order by columnname -- 将top m笔插入set rowcount nselect * from 表变量 order by columnname desc3.select top n * from (select top m * from tablename order by columnname) aorder by c 阅读全文
posted @ 2011-04-28 10:14 荣耀轩辕 阅读(148) 评论(0) 推荐(0) 编辑