<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[newhuman66的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/newhuman66</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; newhuman66]]></copyright><item><title><![CDATA[SQLServer存储过程的返回值 查询分析器/程序]]></title><link>https://blog.youkuaiyun.com/newhuman66/article/details/6584090</link><guid>https://blog.youkuaiyun.com/newhuman66/article/details/6584090</guid><author>newhuman66</author><pubDate>Mon, 04 Jul 2011 17:50:49 +0800</pubDate><description><![CDATA[1.存储过程没有返回值的情况(即存储过程语句中没有return之类的语句)用方法 int count = ExecuteNonQuery(..)执行存储过程其返回值只有两种情况 (1)如果通过查询分析器执行该存储过程，在显示栏中如果有影响的行数，则影响几行co]]></description><category></category></item><item><title><![CDATA[Sql时间函数 ]]></title><link>https://blog.youkuaiyun.com/newhuman66/article/details/6576983</link><guid>https://blog.youkuaiyun.com/newhuman66/article/details/6576983</guid><author>newhuman66</author><pubDate>Thu, 30 Jun 2011 13:46:00 +0800</pubDate><description><![CDATA[一、sql server日期时间函数Sql Server中的日期与时间函数 1.  当前系统日期、时间     select getdate()  2. dateadd  在向指定日期加上一段时间的基础上，返回新的 datetime 值   例如：向日期加上2天    select dateadd(day,2,2004-10-15)  --返回：2004-10-17 00:00:00.000 ]]></description><category></category></item><item><title><![CDATA[Sql server数据库中给虚拟表添加序号列(转)]]></title><link>https://blog.youkuaiyun.com/newhuman66/article/details/6576930</link><guid>https://blog.youkuaiyun.com/newhuman66/article/details/6576930</guid><author>newhuman66</author><pubDate>Thu, 30 Jun 2011 13:19:00 +0800</pubDate><description><![CDATA[1:   自增列       类型为：int   identity(1,1)     当然也可以是bigint,smallint             eg:   create   table   tbName(id   int   identity(1,1),description   varchar(20))           或在用企业管理器设计表字段时，将字段设为int,将标识设为是，]]></description><category></category></item><item><title><![CDATA[对Sql进行类似For循环处理(转牦牛的天空)]]></title><link>https://blog.youkuaiyun.com/newhuman66/article/details/6576752</link><guid>https://blog.youkuaiyun.com/newhuman66/article/details/6576752</guid><author>newhuman66</author><pubDate>Thu, 30 Jun 2011 11:36:00 +0800</pubDate><description><![CDATA[ 今天遇到1个很是无语的问题。。。由于开发人员的版本更新导致用户在今天所开之单据的CreatDate都变成了yyyy-MM-dd格式，原本应该为yyyy-MM-dd hh:mm:ss:fff格式。于是，只能手动更新数据了 -_-!代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.Co]]></description><category></category></item><item><title><![CDATA[sql排名有名次(刘延军 )]]></title><link>https://blog.youkuaiyun.com/newhuman66/article/details/6537719</link><guid>https://blog.youkuaiyun.com/newhuman66/article/details/6537719</guid><author>newhuman66</author><pubDate>Sat, 11 Jun 2011 10:19:00 +0800</pubDate><description><![CDATA[SELECT *,(select  count(1)+1   from 表 a where a.Num>b.Num) as 排名  from 表 b   order by 要排名的字段（Num） desc两条关于生成排名的SQL语句: select name,score,(select count(*) from t where score>a.score)+1 from t a ]]></description><category></category></item></channel></rss>