<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>luckisok的专栏  - 数据库</title><link>http://blog.csdn.net/luckisok/category/151482.aspx</link><description>数据库原理及应用</description><dc:language>zh-CN</dc:language><lastUpdateTime>Thu, 10 Jan 2008 15:36:29 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>luckisok</dc:creator><title> Access数据库“自动编号”字段归零   </title><link>http://blog.csdn.net/luckisok/archive/2007/01/22/1489655.aspx</link><pubDate>Mon, 22 Jan 2007 09:29:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2007/01/22/1489655.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/1489655.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2007/01/22/1489655.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/1489655.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1489655</trackback:ping><description>Access数据库“自动编号”数据类型是一个非常实用的类型，它可以很方便地帮助我们完成标识不同记录ID的工作。但是由于JET引擎的特性（SQL server使用T-SQL），当我们在Access数据库某张表中执行了删除所有数据的操作后，被用来标识唯一ID的字段将不再归零（从头开始计数），而是会继续延续上次ID递增计数，我们可以用若干种方法解决这样的问题，以下结合ASP推荐两种方法（以下方法都是建立在空数据表的“自动编号”归零的前提下）：&lt;img src ="http://blog.csdn.net/luckisok/aggbug/1489655.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>记录的ID是自动生成好，还是人工赋值好？大家讨论一下。</title><link>http://blog.csdn.net/luckisok/archive/2007/01/05/1475151.aspx</link><pubDate>Fri, 05 Jan 2007 21:13:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2007/01/05/1475151.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/1475151.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2007/01/05/1475151.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/1475151.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1475151</trackback:ping><description>记录的ID是自动生成好，还是人工赋值好？大家讨论一下。&lt;img src ="http://blog.csdn.net/luckisok/aggbug/1475151.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title> 实习计划表</title><link>http://blog.csdn.net/luckisok/archive/2006/06/27/840565.aspx</link><pubDate>Tue, 27 Jun 2006 15:13:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2006/06/27/840565.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/840565.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2006/06/27/840565.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/840565.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=840565</trackback:ping><description>     软件开发小组的同学，大家按以下格式制表，保存为WORD文档，发到 w9521423@sina.com            



&lt;img src ="http://blog.csdn.net/luckisok/aggbug/840565.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>如何让你的SQL运行得更快 </title><link>http://blog.csdn.net/luckisok/archive/2006/05/18/744823.aspx</link><pubDate>Thu, 18 May 2006 22:23:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2006/05/18/744823.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/744823.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2006/05/18/744823.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/744823.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=744823</trackback:ping><description>人们在使用SQL时往往会陷入一个误区，即太关注于所得的结果是否正确，而忽略了不同的实现方法之间可能存在的性能差异，这种性能差异在大型的或是复杂的数据库环境中（如联机事务处理OLTP或决策支持系统DSS）中表现得尤为明显。笔者在工作实践中发现，不良的SQL往往来自于不恰当的索引设计、不充份的连接条件和不可优化的where子句。在对它们进行适当的优化后，其运行速度有了明显地提高！下面我将从这三个方面分别进行总结：
    为了更直观地说明问题，所有实例中的SQL运行时间均经过测试，不超过１秒的均表示为（&lt; 1秒）。 
&lt;img src ="http://blog.csdn.net/luckisok/aggbug/744823.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>sql优化</title><link>http://blog.csdn.net/luckisok/archive/2006/05/18/744818.aspx</link><pubDate>Thu, 18 May 2006 22:15:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2006/05/18/744818.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/744818.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2006/05/18/744818.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/744818.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=744818</trackback:ping><description>    实际上，您可以把索引理解为一种特殊的目录。微软的SQL SERVER提供了两种索引：聚集索引（clustered index，也称聚类索引、簇集索引）和非聚集索引（nonclustered index，也称非聚类索引、非簇集索引）。下面，我们举例来说明一下聚集索引和非聚集索引的区别： 


&lt;img src ="http://blog.csdn.net/luckisok/aggbug/744818.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>一个通用的数据分页的存储过程 </title><link>http://blog.csdn.net/luckisok/archive/2006/05/09/715776.aspx</link><pubDate>Tue, 09 May 2006 23:44:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2006/05/09/715776.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/715776.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2006/05/09/715776.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/715776.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=715776</trackback:ping><description> 一个通用的数据分页的存储过程 

CREATE PROCEDURE sp_page 
@tb varchar(20), --表名 
@col varchar(20), --按该列来进行分页 
@coltype bit, --@col列的类型,0-数字类型,1-字符类型 
@collist varchar(800),--要查询出的字段列表 
@selecttype int, --查询类型,1-前页,2-后页,3-首页,4-末页,5-指定页 
@pagesize int, --每页记录数 
@page int, --指定页 
@minid varchar(50), --当前最小号 
@maxid varchar(50) --当前最大号 
AS 
DECLARE @sql varchar(8000) 
IF @coltype=1 
BEGIN 
SET @minid=''''+@minid+'''' 
SET @maxid=''''+@maxid+'''' 
END 
SET @sql= 
CASE @selecttype 
WHEN 1--前页 &lt;img src ="http://blog.csdn.net/luckisok/aggbug/715776.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>毕业设计题目参考</title><link>http://blog.csdn.net/luckisok/archive/2006/01/01/568232.aspx</link><pubDate>Sun, 01 Jan 2006 22:30:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2006/01/01/568232.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/568232.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2006/01/01/568232.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/568232.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=568232</trackback:ping><description>以下题目可供选择，也可自拟题目，请在1月4日之前确定，将毕业设计的题目发送到我的邮箱

w9521423@sina.com

&lt;img src ="http://blog.csdn.net/luckisok/aggbug/568232.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>2005年秋季《数据库原理及应用》选修课考试安排</title><link>http://blog.csdn.net/luckisok/archive/2005/12/07/545683.aspx</link><pubDate>Wed, 07 Dec 2005 10:52:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/12/07/545683.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/545683.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/12/07/545683.aspx#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/545683.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=545683</trackback:ping><description>    选修2005年秋季《数据库原理及应用》课程的同学，课程考试时间定于16周星期二晚上

19：30-21：30分进行，考试地点A311。请相互通知。
&lt;img src ="http://blog.csdn.net/luckisok/aggbug/545683.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>数据库练习三答案</title><link>http://blog.csdn.net/luckisok/archive/2005/12/07/545675.aspx</link><pubDate>Wed, 07 Dec 2005 10:48:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/12/07/545675.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/545675.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/12/07/545675.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/545675.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=545675</trackback:ping><description>数据库练习三答案&lt;img src ="http://blog.csdn.net/luckisok/aggbug/545675.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>数据库练习四</title><link>http://blog.csdn.net/luckisok/archive/2005/12/05/544056.aspx</link><pubDate>Mon, 05 Dec 2005 15:40:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/12/05/544056.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/544056.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/12/05/544056.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/544056.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=544056</trackback:ping><description>数据库练习四&lt;img src ="http://blog.csdn.net/luckisok/aggbug/544056.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>数据库练习二答案</title><link>http://blog.csdn.net/luckisok/archive/2005/12/05/543822.aspx</link><pubDate>Mon, 05 Dec 2005 11:34:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/12/05/543822.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/543822.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/12/05/543822.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/543822.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=543822</trackback:ping><description>数据库练习二答案&lt;img src ="http://blog.csdn.net/luckisok/aggbug/543822.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>数据库练习一答案</title><link>http://blog.csdn.net/luckisok/archive/2005/12/05/543813.aspx</link><pubDate>Mon, 05 Dec 2005 11:23:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/12/05/543813.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/543813.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/12/05/543813.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/543813.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=543813</trackback:ping><description>数据库练习一答案&lt;img src ="http://blog.csdn.net/luckisok/aggbug/543813.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>数据库练习三</title><link>http://blog.csdn.net/luckisok/archive/2005/12/05/543800.aspx</link><pubDate>Mon, 05 Dec 2005 11:07:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/12/05/543800.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/543800.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/12/05/543800.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/543800.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=543800</trackback:ping><description>数据库练习三&lt;img src ="http://blog.csdn.net/luckisok/aggbug/543800.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>数据库练习题二</title><link>http://blog.csdn.net/luckisok/archive/2005/11/29/539105.aspx</link><pubDate>Tue, 29 Nov 2005 12:19:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/11/29/539105.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/539105.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/11/29/539105.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/539105.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=539105</trackback:ping><description>数据库练习题二&lt;img src ="http://blog.csdn.net/luckisok/aggbug/539105.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>luckisok</dc:creator><title>数据库练习题一</title><link>http://blog.csdn.net/luckisok/archive/2005/11/29/539095.aspx</link><pubDate>Tue, 29 Nov 2005 12:08:00 GMT</pubDate><guid>http://blog.csdn.net/luckisok/archive/2005/11/29/539095.aspx</guid><wfw:comment>http://blog.csdn.net/luckisok/comments/539095.aspx</wfw:comment><comments>http://blog.csdn.net/luckisok/archive/2005/11/29/539095.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/luckisok/comments/commentRss/539095.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=539095</trackback:ping><description>数据库练习题一&lt;img src ="http://blog.csdn.net/luckisok/aggbug/539095.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>