﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-一只牛的异想世界-随笔分类-数据库</title><link>http://www.blogjava.net/andyelvis/category/39561.html</link><description>积水成流，聚沙成堆!</description><language>zh-cn</language><lastBuildDate>Thu, 14 May 2009 17:46:37 GMT</lastBuildDate><pubDate>Thu, 14 May 2009 17:46:37 GMT</pubDate><ttl>60</ttl><item><title>关于SQL 数据库表中的聚集索引和非聚集索引等（转）</title><link>http://www.blogjava.net/andyelvis/archive/2009/05/14/270680.html</link><dc:creator>蒋耘</dc:creator><author>蒋耘</author><pubDate>Thu, 14 May 2009 11:19:00 GMT</pubDate><guid>http://www.blogjava.net/andyelvis/archive/2009/05/14/270680.html</guid><wfw:comment>http://www.blogjava.net/andyelvis/comments/270680.html</wfw:comment><comments>http://www.blogjava.net/andyelvis/archive/2009/05/14/270680.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/andyelvis/comments/commentRss/270680.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/andyelvis/services/trackbacks/270680.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 1.概念<br>         索引是在数据库表或者视图上创建的对象，目的是为了加快对表或视图的查询的速度（简单理解）。<br>         索引是一个单独的、物理的数据库结构，它是某个表中一列或若干列值的集合和相应的指向表中物理标识这些值的数据页的逻辑指针清单（深刻理解）。 <br>         按照存储方式分为：聚集与非聚集索引（需要重视和区别的概念，后面详解）<br>         按照维护与管理索引角度分为：唯一索引、复合索引和系统自动创建的索引（相对简单，如下解释：）<br>         1).唯一索引：惟一索引可以确保索引列不包含重复的值.<br>         可以用多个列，但是索引可以确保索引列中每个值组合都是唯一的，<br>         即下面的姓不能有重复，同时名也不能有重复：<br>                                             姓      名<br>                                             李      二<br>        &nbsp;&nbsp;<a href='http://www.blogjava.net/andyelvis/archive/2009/05/14/270680.html'>阅读全文</a><img src ="http://www.blogjava.net/andyelvis/aggbug/270680.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/andyelvis/" target="_blank">蒋耘</a> 2009-05-14 19:19 <a href="http://www.blogjava.net/andyelvis/archive/2009/05/14/270680.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>数据库的索引</title><link>http://www.blogjava.net/andyelvis/archive/2009/05/14/270520.html</link><dc:creator>蒋耘</dc:creator><author>蒋耘</author><pubDate>Wed, 13 May 2009 16:41:00 GMT</pubDate><guid>http://www.blogjava.net/andyelvis/archive/2009/05/14/270520.html</guid><wfw:comment>http://www.blogjava.net/andyelvis/comments/270520.html</wfw:comment><comments>http://www.blogjava.net/andyelvis/archive/2009/05/14/270520.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/andyelvis/comments/commentRss/270520.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/andyelvis/services/trackbacks/270520.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 索引 <br><br>使用索引可快速访问数据库表中的特定信息。索引是对数据库表中一列或多列的值进行排序的一种结构，例如 employee 表的姓（lname）列。如果要按姓查找特定职员，与必须搜索表中的所有行相比，索引会帮助您更快地获得该信息。<br><br>索引提供指向存储在表的指定列中的数据值的指针，然后根据您指定的排序顺序对这些指针排序。数据库使用索引的方式与您使用书籍中的索引的方式很相似：它搜索索引以找到特定值，然后顺指针找到包含该值的行。<br><br>在数据库关系图中，您可以在选定表的“索引/键”属性页中创建、编辑或删除每个索引类型。当保存索引所附加到的表，或保存该表所在的关系图时，索引将保存在数据库中。有关详细信息，请参见创建索引。<br><br>注意;并非所有的数据库都以相同的方式使用索引。有关更多信息，请参见数据库服务器注意事项，或者查阅数据库文档。 <br>作为通用规则，只有当经常查询索引列中的数据时，才需要在表上创建索引。索引占用磁盘空间，并且降低添加、删除和更新行的速度。在多数情况下，索引用于数据检索的速度优势大大超过它的。&nbsp;&nbsp;<a href='http://www.blogjava.net/andyelvis/archive/2009/05/14/270520.html'>阅读全文</a><img src ="http://www.blogjava.net/andyelvis/aggbug/270520.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/andyelvis/" target="_blank">蒋耘</a> 2009-05-14 00:41 <a href="http://www.blogjava.net/andyelvis/archive/2009/05/14/270520.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>