<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/chenyu112" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/chenyu112" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 23 Jun 2009 18:30:00 GMT</lastBuildDate><title>chenyu112的专栏</title><link>http://blog.csdn.net/chenyu112/</link><item><title>大数据量高并发的数据库优化</title><link>http://blog.csdn.net/chenyu112/archive/2009/06/23/4292470.aspx</link><wfw:comment>http://blog.csdn.net/chenyu112/comments/4292470.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyu112/comments/commentRss/4292470.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4292470</trackback:ping><description>&lt;br /&gt;一、数据库结构的设计&lt;br /&gt;    如果不能设计一个合理的数据库模型，不仅会增加客户端和服务器段程序的编程和维护的难度，而且将会影响系统实际运行的性能。所以，在一个系统开始实施之前，完备的数据库模型的设计是必须的。&lt;br /&gt;    在一个系统分析、设计阶段，因为数据量较小，负荷较低。我们往往只注意到功能的实现，而很难注意到性能的薄弱之处，等到系统投入实际运行一段时间后，才发现系统的性能在降低，这时再来考虑提高系统性能则要花费更多的人力物力，而整个系统也不可避免的形成了一个打补丁工程。&lt;br /&gt;    所以在考虑整个系统的流程的时候，我们必须要考虑，在高并发大数据量的访问情况下，我们的系统会不会出现极端的情况。（例如：对外统计系统在7月16日出现的数据异常的情况，并发大数据量的的访问造成，数据库的响应时间不能跟上数据刷新的速度造成。具体情况是：在日期临界时（00：00：00），判断数据库中是否有当前日期的记录，没有则插入一条当前日期的记录。在低并发访问的情况下，不会发生问题，但是当日期临界时的访问量相当大的时候，在做这一判断的时候，会出现多次条件成立，则数据库里会被插&lt;img src =&quot;http://blog.csdn.net/chenyu112/aggbug/4292470.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236562304/chenyu112/csdn.net/s.gif?r=http://blog.csdn.net/chenyu112/archive/2009/06/23/4292470.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/chenyu112/236562304/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/chenyu112/236562304/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Jun 2009 02:30:00 +0800</pubDate><author>晨雨</author><comments>http://blog.csdn.net/chenyu112/archive/2009/06/23/4292470.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/chenyu112/archive/2009/06/23/4292470.aspx</guid><dc:creator>晨雨</dc:creator><fs:srclink>http://blog.csdn.net/chenyu112/archive/2009/06/23/4292470.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/chenyu112/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/chenyu112/~1093596/236562304/1093594</fs:itemid></item><item><title>sql注入过滤</title><link>http://blog.csdn.net/chenyu112/archive/2009/06/23/4291160.aspx</link><wfw:comment>http://blog.csdn.net/chenyu112/comments/4291160.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyu112/comments/commentRss/4291160.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4291160</trackback:ping><description>&lt;br /&gt;过滤的字符如：='/-*&lt;br /&gt;还有就是and,or,not等，包括大小字&lt;br /&gt;暂时就想到这么多，以后想到再补充&lt;img src =&quot;http://blog.csdn.net/chenyu112/aggbug/4291160.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236562305/chenyu112/csdn.net/s.gif?r=http://blog.csdn.net/chenyu112/archive/2009/06/23/4291160.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/chenyu112/236562305/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/chenyu112/236562305/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 23 Jun 2009 19:41:00 +0800</pubDate><author>晨雨</author><comments>http://blog.csdn.net/chenyu112/archive/2009/06/23/4291160.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/chenyu112/archive/2009/06/23/4291160.aspx</guid><dc:creator>晨雨</dc:creator><fs:srclink>http://blog.csdn.net/chenyu112/archive/2009/06/23/4291160.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/chenyu112/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/chenyu112/~1093596/236562305/1093594</fs:itemid></item><item><title>B2B,B2C,C2C,C2B务之间的区</title><link>http://blog.csdn.net/chenyu112/archive/2009/06/23/4290883.aspx</link><wfw:comment>http://blog.csdn.net/chenyu112/comments/4290883.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyu112/comments/commentRss/4290883.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4290883</trackback:ping><description>&lt;br /&gt; B2B (Business to Business) 是指商家与商家建立的商业关系. 例如我们在麦当劳中只能够买到可口可乐是因为麦当劳与可口可乐中的商业伙伴的关系. 商家们建立商业伙伴的关系是希望通过大家所提供的东西来形成一个互补的发展机会,大家的生意都可以有利润. 例子：阿里巴巴、慧聪。&lt;br /&gt;&lt;br /&gt;　　B2C (Business to Consumer) 就是我们很经常看到的供应商直接把商品卖给用户. 例如你去麦当劳吃东西就是B2C, 因为你只是一个客户. 例子：当当、卓越、优凯特。&lt;br /&gt;&lt;br /&gt;　　C2C (Consumer to Consumer), 客户之间自己把东西放上网去卖. 例子：淘宝、拍拍、易趣&lt;br /&gt;&lt;br /&gt;　　C2B (Consumer to Business), 这个概念比较新,意思是由客户选择自己要些什么东西,要求的价格是什么,然后由商家来决定是否接受客户的要求. 假如商家接受客户的要求, 那么交易成功; 假如商家不接受客户的要求,那么就是交易失败。&lt;br /&gt;&lt;br /&gt;　　主要是对象的区别&lt;br /&gt;&lt;br /&gt;&lt;img src =&quot;http://blog.csdn.net/chenyu112/aggbug/4290883.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236562306/chenyu112/csdn.net/s.gif?r=http://blog.csdn.net/chenyu112/archive/2009/06/23/4290883.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/chenyu112/236562306/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/chenyu112/236562306/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 23 Jun 2009 18:38:00 +0800</pubDate><author>晨雨</author><comments>http://blog.csdn.net/chenyu112/archive/2009/06/23/4290883.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/chenyu112/archive/2009/06/23/4290883.aspx</guid><dc:creator>晨雨</dc:creator><fs:srclink>http://blog.csdn.net/chenyu112/archive/2009/06/23/4290883.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/chenyu112/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/chenyu112/~1093596/236562306/1093594</fs:itemid></item><item><title>sql server常用函数</title><link>http://blog.csdn.net/chenyu112/archive/2009/06/22/4289405.aspx</link><wfw:comment>http://blog.csdn.net/chenyu112/comments/4289405.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyu112/comments/commentRss/4289405.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4289405</trackback:ping><description>&lt;br /&gt; datalength(Char_expr) 返回字符串包含字符数,但不包含后面的空格 substring(expression,start,length) 不多说了,取子串 right(char_expr,int_expr) 返回字符串右边int_expr个字符 字符操作类 upper(char_expr) 转为大写 lower(char_expr) 转为小写 space(int_expr) 生成int_expr个空格 replicate(char_expr,int_expr)复制字符串int_expr次 reverse(char_expr) 反转字符串 stuff(char_expr1,start,length,char_expr2) 将字符串char_expr1中的从 start开始的length个字符用char_expr2代替 ltrim(char_expr) rtrim(char_expr) 取掉空格 &lt;br /&gt;ascii(char) char(ascii) 两函数对应,取ascii码,根据ascii吗取字符 &lt;br /&gt;字符串查找 charindex(char&lt;img src =&quot;http://blog.csdn.net/chenyu112/aggbug/4289405.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236562307/chenyu112/csdn.net/s.gif?r=http://blog.csdn.net/chenyu112/archive/2009/06/22/4289405.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/chenyu112/236562307/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/chenyu112/236562307/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 23 Jun 2009 01:14:00 +0800</pubDate><author>晨雨</author><comments>http://blog.csdn.net/chenyu112/archive/2009/06/22/4289405.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/chenyu112/archive/2009/06/22/4289405.aspx</guid><dc:creator>晨雨</dc:creator><fs:srclink>http://blog.csdn.net/chenyu112/archive/2009/06/22/4289405.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/chenyu112/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/chenyu112/~1093596/236562307/1093594</fs:itemid></item><item><title>标量值函数执行</title><link>http://blog.csdn.net/chenyu112/archive/2009/06/20/4285407.aspx</link><wfw:comment>http://blog.csdn.net/chenyu112/comments/4285407.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyu112/comments/commentRss/4285407.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4285407</trackback:ping><description>&lt;br /&gt;前几天做干活时发现 了一个问题，&lt;br /&gt;代码如下：&lt;br /&gt;declare @userid nvarchar(10) &lt;br /&gt;set @userid = '100001' &lt;br /&gt;&lt;br /&gt;select [dbo].[f_GetUserList](@userid) &lt;br /&gt;declare @aa nvarchar(400),@sql nvarchar(1000) &lt;br /&gt;set @aa =  [dbo].[f_GetRelationUserList_New](@userid) &lt;br /&gt;print @aa &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---SQL1： &lt;br /&gt;set @sql =' &lt;br /&gt;select * from userlist where &lt;br /&gt;userid in (' + @aa + ')' &lt;br /&gt;exec(@sql) &lt;br /&gt;&lt;br /&gt;---SQL2: &lt;br /&gt;select * from userlist where userid in (@aa)&lt;br /&gt;奇怪的是第1个SQL可以正常出来数据，而&lt;img src =&quot;http://blog.csdn.net/chenyu112/aggbug/4285407.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236562308/chenyu112/csdn.net/s.gif?r=http://blog.csdn.net/chenyu112/archive/2009/06/20/4285407.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/chenyu112/236562308/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/chenyu112/236562308/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 21 Jun 2009 02:00:00 +0800</pubDate><author>晨雨</author><comments>http://blog.csdn.net/chenyu112/archive/2009/06/20/4285407.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/chenyu112/archive/2009/06/20/4285407.aspx</guid><dc:creator>晨雨</dc:creator><fs:srclink>http://blog.csdn.net/chenyu112/archive/2009/06/20/4285407.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/chenyu112/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/chenyu112/~1093596/236562308/1093594</fs:itemid></item><item><title>.net安装程序打包详细过程</title><link>http://blog.csdn.net/chenyu112/archive/2009/06/20/4285403.aspx</link><wfw:comment>http://blog.csdn.net/chenyu112/comments/4285403.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyu112/comments/commentRss/4285403.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4285403</trackback:ping><description>&lt;br /&gt;1 新建安装部署项目 &lt;br /&gt;&lt;br /&gt;打开VS，点击新建项目，选择：其他项目类型-&gt;安装与部署-&gt;安装向导(安装项目也一样)，然后点击确定。 &lt;br /&gt;&lt;br /&gt;2 安装向导 &lt;br /&gt;&lt;br /&gt;关闭后打开安装向导，点击下一步，或者直接点击完成。 &lt;br /&gt;&lt;br /&gt;3 开始制作 &lt;br /&gt;&lt;br /&gt;安装向导完成后即可进入项目文件夹： &lt;br /&gt;&lt;br /&gt;双击&quot;应用程序文件夹&quot;在右边的空白处右击，选择添加-&gt;文件，将你的做的应用程序的可执行文件和相应的类库和组件添加进来。然后右击你的文件，创建快捷方式，然后把快捷方式分别复制或剪切到左边的&quot;用户的'程序'菜单&quot;和&quot;用户桌面&quot;中。这样安装程序安装完成后会在 &quot;开始-&gt;所有程序&quot;和&quot;桌面&quot;上生成程序的快捷方式。也可以直接在&quot;用户的'程序'菜单&quot;和&quot;用户桌面&quot;相应目录下新建快捷方式，然后定位到你的文件。 &lt;br /&gt;&lt;br /&gt;然后右击左边的&quot;应用程序文件夹&quot;打开属性对话框：将属性中的&quot;DefaultLocation&quot;的路径中的&quot;[Manufacturer]&quot;去掉，不然的话做好的安装程序默认安装目录会是&lt;img src =&quot;http://blog.csdn.net/chenyu112/aggbug/4285403.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236562309/chenyu112/csdn.net/s.gif?r=http://blog.csdn.net/chenyu112/archive/2009/06/20/4285403.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/chenyu112/236562309/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/chenyu112/236562309/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 21 Jun 2009 01:58:00 +0800</pubDate><author>晨雨</author><comments>http://blog.csdn.net/chenyu112/archive/2009/06/20/4285403.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/chenyu112/archive/2009/06/20/4285403.aspx</guid><dc:creator>晨雨</dc:creator><fs:srclink>http://blog.csdn.net/chenyu112/archive/2009/06/20/4285403.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/chenyu112/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/chenyu112/~1093596/236562309/1093594</fs:itemid></item></channel></rss>