﻿<?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>博客园-haiyang1985-最新评论</title><link>http://www.cnblogs.com/haiyang1985/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Tue, 22 Jun 2010 15:18:24 GMT</pubDate><lastBuildDate>Tue, 22 Jun 2010 15:18:24 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:float,double和decimal类型</title><link>http://www.cnblogs.com/haiyang1985/archive/2010/05/24/1402394.html#1831611</link><dc:creator>yongfa365</dc:creator><author>yongfa365</author><pubDate>Mon, 24 May 2010 04:21:35 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2010/05/24/1402394.html#1831611</guid><description><![CDATA[不错，支持，以前没注意到，看来就应该使用decimal<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">yongfa365</a> 2010-05-24 12:21 <a href="http://www.cnblogs.com/haiyang1985/archive/2010/05/24/1402394.html#1831611#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:阿拉伯数字转换成金额大写金额（包括小数）</title><link>http://www.cnblogs.com/haiyang1985/archive/2010/01/21/1402353.html#1751373</link><dc:creator>槑槑</dc:creator><author>槑槑</author><pubDate>Thu, 21 Jan 2010 04:03:39 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2010/01/21/1402353.html#1751373</guid><description><![CDATA[经典,收藏了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">槑槑</a> 2010-01-21 12:03 <a href="http://www.cnblogs.com/haiyang1985/archive/2010/01/21/1402353.html#1751373#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:嵌套事务和事务保存点的错误处理</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/12/29/1372889.html#1737132</link><dc:creator>Mingle</dc:creator><author>Mingle</author><pubDate>Tue, 29 Dec 2009 11:08:25 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/12/29/1372889.html#1737132</guid><description><![CDATA[希望能够看到相关的例子来解释比较好！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">Mingle</a> 2009-12-29 19:08 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/12/29/1372889.html#1737132#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/04/14/1399641.html#1502605</link><dc:creator>.net小鸟</dc:creator><author>.net小鸟</author><pubDate>Tue, 14 Apr 2009 03:02:57 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/04/14/1399641.html#1502605</guid><description><![CDATA[为啥？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">.net小鸟</a> 2009-04-14 11:02 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/04/14/1399641.html#1502605#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/04/14/1399641.html#1502603</link><dc:creator>.net小鸟</dc:creator><author>.net小鸟</author><pubDate>Tue, 14 Apr 2009 03:02:37 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/04/14/1399641.html#1502603</guid><description><![CDATA[READ UNCOMMITTED 和READ COMMITTED<br/>时别的窗口中更新的时候还是要等前边事务执行完才可以。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">.net小鸟</a> 2009-04-14 11:02 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/04/14/1399641.html#1502603#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/04/13/1399641.html#1502032</link><dc:creator>.net小鸟</dc:creator><author>.net小鸟</author><pubDate>Mon, 13 Apr 2009 09:06:45 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/04/13/1399641.html#1502032</guid><description><![CDATA[好文<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">.net小鸟</a> 2009-04-13 17:06 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/04/13/1399641.html#1502032#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/24/1399641.html#1485974</link><dc:creator>fujinshan</dc:creator><author>fujinshan</author><pubDate>Tue, 24 Mar 2009 07:59:46 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/24/1399641.html#1485974</guid><description><![CDATA[写的很好呀<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">fujinshan</a> 2009-03-24 15:59 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/24/1399641.html#1485974#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468631</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Thu, 05 Mar 2009 07:43:31 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468631</guid><description><![CDATA[@毁于随<br/>关于HoldLock，我给出了一个update操作和select操作，它只对update操作锁定，不影响其他用户的读取操作的。<br/>乐观锁？没研究过，你研究过分享一下嘛！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-03-05 15:43 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468631#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468297</link><dc:creator>毁于随</dc:creator><author>毁于随</author><pubDate>Thu, 05 Mar 2009 03:11:03 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468297</guid><description><![CDATA[对了,SQL2005现在还有一个行版本控制,是使用快照的方式,应该算是乐观锁,博主研究过吗?<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">毁于随</a> 2009-03-05 11:11 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468297#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468235</link><dc:creator>毁于随</dc:creator><author>毁于随</author><pubDate>Thu, 05 Mar 2009 02:29:18 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468235</guid><description><![CDATA[我还想研究一下,更深入点,有些东西你分析了结果,但是没有说明原因.手头的SQL2005的文档太差了,搜HoldLock都搜不到.我装个SQL2K的文档再研究一下.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">毁于随</a> 2009-03-05 10:29 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468235#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468234</link><dc:creator>毁于随</dc:creator><author>毁于随</author><pubDate>Thu, 05 Mar 2009 02:27:53 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468234</guid><description><![CDATA[@-Timothy-<br/>呵呵,花费了我半个小时的时候仔细的看,推敲才看明白.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">毁于随</a> 2009-03-05 10:27 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/05/1399641.html#1468234#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: float,double和decimal类型</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/04/1402394.html#1467508</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Wed, 04 Mar 2009 07:03:42 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/04/1402394.html#1467508</guid><description><![CDATA[当然是总结了，不然敢放到首页原创区嘛。<br/>很简单也是最容易被忽视的问题。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-03-04 15:03 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/04/1402394.html#1467508#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: float,double和decimal类型</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466620</link><dc:creator>by elwinTest</dc:creator><author>by elwinTest</author><pubDate>Tue, 03 Mar 2009 09:27:48 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466620</guid><description><![CDATA[--引用--------------------------------------------------<br/>Ivony...: 这是总结还是抄书？<br/>--------------------------------------------------------<br/>不管总结还是抄书,咱就当复习吧<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">by elwinTest</a> 2009-03-03 17:27 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466620#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: float,double和decimal类型</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466614</link><dc:creator>Ivony...</dc:creator><author>Ivony...</author><pubDate>Tue, 03 Mar 2009 09:25:10 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466614</guid><description><![CDATA[这是总结还是抄书？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">Ivony...</a> 2009-03-03 17:25 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466614#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: float,double和decimal类型</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466586</link><dc:creator>A.Z</dc:creator><author>A.Z</author><pubDate>Tue, 03 Mar 2009 09:06:06 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466586</guid><description><![CDATA[很好很强大...<br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">A.Z</a> 2009-03-03 17:06 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/03/03/1402394.html#1466586#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/28/1399641.html#1464073</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Sat, 28 Feb 2009 11:24:33 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/28/1399641.html#1464073</guid><description><![CDATA[@毁于随<br/>啊？我就看不懂别人的才花了三天时间亲自总结的呀。伤心。。。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-02-28 19:24 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/28/1399641.html#1464073#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/28/1399641.html#1463767</link><dc:creator>stabley107</dc:creator><author>stabley107</author><pubDate>Sat, 28 Feb 2009 01:33:20 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/28/1399641.html#1463767</guid><description><![CDATA[大家好,sql2005 怎么让有些人看到的存储过程加密有些人不加密呢<br/>我要对数据库中的存储过程对某些人暴露接口,对某些人开放明文,要达到的效果是,<br/>只有给定权限的用户才能看到正常的存储过程,没给定权限的用户看到的是加密的存储过程.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">stabley107</a> 2009-02-28 09:33 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/28/1399641.html#1463767#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463564</link><dc:creator>冰绿茶</dc:creator><author>冰绿茶</author><pubDate>Fri, 27 Feb 2009 12:27:37 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463564</guid><description><![CDATA[其实很多人在平时设计的时候并不太关心数据库锁的问题，一般都是在发生问题的时候才会去想是不是发生跟锁相关的问题，组织上虽然有点乱，但还是讲的比较明白，谢谢分享。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">冰绿茶</a> 2009-02-27 20:27 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463564#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463468</link><dc:creator>无心雨云</dc:creator><author>无心雨云</author><pubDate>Fri, 27 Feb 2009 10:13:08 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463468</guid><description><![CDATA[看不太懂<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">无心雨云</a> 2009-02-27 18:13 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463468#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL锁机制和事务隔离级别</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463379</link><dc:creator>毁于随</dc:creator><author>毁于随</author><pubDate>Fri, 27 Feb 2009 09:18:29 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463379</guid><description><![CDATA[写的太乱.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">毁于随</a> 2009-02-27 17:18 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/27/1399641.html#1463379#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1461022</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Wed, 25 Feb 2009 06:43:39 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1461022</guid><description><![CDATA[CREATE PROCEDURE news_Showlist<br/>(<br/>	@tblName		VARCHAR(255),	-- 表名<br/>	@strGetFields	VARCHAR(1000),	-- 需要返回的列<br/>	@fldName		VARCHAR(255),	-- 排序的字段名<br/>	@PageSize		INT ,			-- 页尺寸<br/>	@PageIndex		INT ,			-- 页码<br/>	@strWhere		VARCHAR(1500),	-- 查询条件(注意: 不要加where)<br/>	@Sort			VARCHAR(255)	--排序的方法<br/>)<br/>AS<br/>DECLARE @strSQL   VARCHAR(5000)		-- 主语句<br/>DECLARE @strTmp   VARCHAR(110)		-- 临时变量<br/>DECLARE @strOrder VARCHAR(400)		-- 排序类型<br/><br/>IF @Sort = 'desc'<br/>BEGIN<br/>	SET @strTmp = '&lt;(select min'<br/>	SET @strOrder = ' order by ' + @fldName +' desc'<br/>	--如果@OrderType不是，就执行降序，这句很重要！<br/>END<br/>ELSE<br/>BEGIN<br/>	SET @strTmp = '&gt;(select max'<br/>	SET @strOrder = ' order by ' + @fldName +' asc'<br/>END<br/> <br/>IF @PageIndex = 1<br/>BEGIN<br/>	IF @strWhere != ''   <br/>	BEGIN<br/>		SET @strSQL = 'select top ' + str(@PageSize) +' '+@strGetFields+ '  from ' + @tblName <br/>		+ ' where ' + @strWhere + ' ' + @strOrder<br/>	END<br/>	ELSE<br/>	BEGIN<br/>		SET @strSQL = 'select top ' + str(@PageSize) +' '+@strGetFields+ '  from '+ @tblName <br/>		+ ' '+ @strOrder<br/>	END<br/>	--如果是第一页就执行以上代码，这样会加快执行速度<br/>END<br/>ELSE<br/>BEGIN<br/>	--以下代码赋予了@strSQL以真正执行的SQL代码<br/>	SET @strSQL = 'select top ' + str(@PageSize) +' '+@strGetFields+ '  from '<br/>	+ @tblName + ' where ' + @fldName + '' + @strTmp + '('+ @fldName + ') from <br/>	(select top ' + str((@PageIndex-1)*@PageSize) + ' '+ @fldName + ' from ' <br/>	+ @tblName + '' + @strOrder + ') as tblTmp)'+ @strOrder<br/>	 <br/>	IF @strWhere != ''<br/>	SET @strSQL = 'select top ' + str(@PageSize) +' '+@strGetFields+ '  from '<br/>	+ @tblName + ' where ' + @fldName + '' + @strTmp + '('+ @fldName + ') from <br/>	(select top ' + str((@PageIndex-1)*@PageSize) + ' '+ @fldName + ' from '<br/>	 + @tblName + ' where ' + @strWhere + ' '+ @strOrder + ') as tblTmp) <br/>	and ' + @strWhere + ' ' + @strOrder<br/>END<br/>EXEC (@strSQL)<br/>RETURN<br/><br/><br/>CSDN的例子，这个灵活性高。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-02-25 14:43 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1461022#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460972</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Wed, 25 Feb 2009 05:58:09 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460972</guid><description><![CDATA[学习。<br/>不过你写的有点小问题，括号在外面。row_number() over (order by (select0))<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-02-25 13:58 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460972#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460849</link><dc:creator>果果’er</dc:creator><author>果果’er</author><pubDate>Wed, 25 Feb 2009 04:03:15 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460849</guid><description><![CDATA[排序有可能就把原序列改变了，<br/>row_number如果不想排序，可以用<br/>row_number() over (order by select(0))<br/><br/><br/>with的确很好用，做分页的时候尤其。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">果果’er</a> 2009-02-25 12:03 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460849#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460791</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Wed, 25 Feb 2009 03:13:33 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460791</guid><description><![CDATA[方法其实很多的，只要简便和效率不差就行。<br/>不过，在实现分页时，用这蛮好的。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-02-25 11:13 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460791#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 浅拷贝和深拷贝</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1375017.html#1460563</link><dc:creator>Jianchidaodi</dc:creator><author>Jianchidaodi</author><pubDate>Wed, 25 Feb 2009 00:44:51 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1375017.html#1460563</guid><description><![CDATA[不错，LZ解释的挺清晰的<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">Jianchidaodi</a> 2009-02-25 08:44 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1375017.html#1460563#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460529</link><dc:creator>sec</dc:creator><author>sec</author><pubDate>Wed, 25 Feb 2009 00:10:01 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460529</guid><description><![CDATA[select top 40 * from Sales.SalesOrderHeader where id not in(select top 30 id from Sales.SalesOrderHeader)<br/>不知道是不是这个意思。。。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">sec</a> 2009-02-25 08:10 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/25/1397137.html#1460529#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460355</link><dc:creator>ssssss</dc:creator><author>ssssss</author><pubDate>Tue, 24 Feb 2009 13:10:23 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460355</guid><description><![CDATA[@Gray Zhang<br/>应该是asc升序，select top 40 * ..asc 取到前40条，然后再top 10 ... desc降序前10条，就是30-40了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">ssssss</a> 2009-02-24 21:10 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460355#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460304</link><dc:creator>Gray Zhang</dc:creator><author>Gray Zhang</author><pubDate>Tue, 24 Feb 2009 12:12:19 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460304</guid><description><![CDATA[@大奔<br/>不对哦，假设你有1-100条<br/>那么select top 40 * desc的结果是100-60<br/>select top 10 *的结果是100-90<br/>结果你取了最后10条……<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">Gray Zhang</a> 2009-02-24 20:12 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460304#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460156</link><dc:creator>大奔</dc:creator><author>大奔</author><pubDate>Tue, 24 Feb 2009 09:15:09 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460156</guid><description><![CDATA[晕迷，少了order by  id desc<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">大奔</a> 2009-02-24 17:15 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460156#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460153</link><dc:creator>大奔</dc:creator><author>大奔</author><pubDate>Tue, 24 Feb 2009 09:14:14 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460153</guid><description><![CDATA[select top 10 * from (select top 40 * from tb desc)a<br/>先top40然后倒序再top10不就是30--40之间的？不需要用什么函数哦，我记得我去年第一次去公司面试的时候就有这个题，我当时就是这么做的，也不知道对不对，反正最后没要我。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">大奔</a> 2009-02-24 17:14 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460153#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460139</link><dc:creator>andrew2008</dc:creator><author>andrew2008</author><pubDate>Tue, 24 Feb 2009 09:07:55 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460139</guid><description><![CDATA[@楼主<br/>你的方法和一楼的哪个效率高？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">andrew2008</a> 2009-02-24 17:07 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460139#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 全局临时表的应用</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1395054.html#1460081</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Tue, 24 Feb 2009 08:34:52 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1395054.html#1460081</guid><description><![CDATA[@风影<br/>的确不错，所以才转载的。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-02-24 16:34 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1395054.html#1460081#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460075</link><dc:creator>-Timothy-</dc:creator><author>-Timothy-</author><pubDate>Tue, 24 Feb 2009 08:31:05 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460075</guid><description><![CDATA[一楼的好复杂哦。<br/>其实，我想介绍一个row_number()函数和with关键字的。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">-Timothy-</a> 2009-02-24 16:31 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460075#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460008</link><dc:creator>sujiantao</dc:creator><author>sujiantao</author><pubDate>Tue, 24 Feb 2009 07:40:48 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460008</guid><description><![CDATA[我想知道和一楼的方法有什么区别？<br/>自已做个临时表，加主键列，和2005的方法，那个更效率更好一些？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">sujiantao</a> 2009-02-24 15:40 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1460008#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 全局临时表的应用</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1395054.html#1459998</link><dc:creator>风影</dc:creator><author>风影</author><pubDate>Tue, 24 Feb 2009 07:31:33 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1395054.html#1459998</guid><description><![CDATA[思路不错。。。。。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">风影</a> 2009-02-24 15:31 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1395054.html#1459998#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459991</link><dc:creator>风影</dc:creator><author>风影</author><pubDate>Tue, 24 Feb 2009 07:28:23 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459991</guid><description><![CDATA[两种方法实际上一样啊，只不过第二种用CTE，分开了……<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">风影</a> 2009-02-24 15:28 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459991#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459843</link><dc:creator>海洋——海纳百川,有容乃大.</dc:creator><author>海洋——海纳百川,有容乃大.</author><pubDate>Tue, 24 Feb 2009 05:36:10 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459843</guid><description><![CDATA[收藏先。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">海洋——海纳百川,有容乃大.</a> 2009-02-24 13:36 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459843#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 读取不连续的第30到40之间的数据</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459840</link><dc:creator>编程入门</dc:creator><author>编程入门</author><pubDate>Tue, 24 Feb 2009 05:33:22 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459840</guid><description><![CDATA[这个类似分页<br/><br/>ALTER    procedure p_news <br/>(@startIndex int,<br/>@endIndex int,<br/>@l_moduleid int<br/>)<br/>as<br/>set nocount on<br/>declare @indextable table(id int identity(1,1),nid int)<br/>set rowcount @endIndex<br/>insert into @indextable(nid) select l_id from lgh_news  where l_moduleid=@l_moduleid order by l_id asc<br/>select [l_id], [l_title], [l_content], [l_order], [l_approve], [l_readCount], [l_moduleID], [l_imageID], [l_userName], [l_upDate], [l_upIP], [ImgNews], [l_source] from lgh_news O<br/><br/>inner join @indextable t on <br/>O.l_id=t.nid<br/>where t.id between @startIndex and @endIndex order by t.id <br/>set nocount off<br/>	RETURN<br/><br/><br/>GO<br/>SET QUOTED_IDENTIFIER OFF <br/>GO<br/>SET ANSI_NULLS ON <br/>GO<br/><br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">编程入门</a> 2009-02-24 13:33 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/02/24/1397137.html#1459840#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 批文件注册程序集</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/01/14/1375472.html#1430958</link><dc:creator>Small Light</dc:creator><author>Small Light</author><pubDate>Wed, 14 Jan 2009 06:46:48 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/01/14/1375472.html#1430958</guid><description><![CDATA[不错..不过用的不多<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">Small Light</a> 2009-01-14 14:46 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/01/14/1375472.html#1430958#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 批文件注册程序集</title><link>http://www.cnblogs.com/haiyang1985/archive/2009/01/14/1375472.html#1430842</link><dc:creator>草</dc:creator><author>草</author><pubDate>Wed, 14 Jan 2009 05:10:09 GMT</pubDate><guid>http://www.cnblogs.com/haiyang1985/archive/2009/01/14/1375472.html#1430842</guid><description><![CDATA[学习了<br/><a href="http://www.fzl63.com/" target="_new" rel="nofollow">http://www.fzl63.com/</a><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/haiyang1985/" target="_blank">草</a> 2009-01-14 13:10 <a href="http://www.cnblogs.com/haiyang1985/archive/2009/01/14/1375472.html#1430842#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
