<?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/zhy97031" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/zhy97031" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 23 Sep 2008 17:31:00 GMT</lastBuildDate><title>zhy97031的专栏</title><link>http://blog.csdn.net/zhy97031/</link><item><title>VM下ubuntu jeos更换网卡，网卡无法启动</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894518/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2969259.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2969259.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2969259</trackback:ping><description>导读： 　　VM下ubuntu jeos更换网卡，网卡无法启动 　　原因是vm配置的网卡mac地址与，ubuntu jeos安装是的配置缓存文件不同 　　使用 ifup eth0出现 　　eth0: ERROR while getting interface flags: No such device 　　SIOCSIFADDR: No such device 　　eth0: ERROR while getting interface flags: No such device 　　SIOCSIFNETMASK: No such device 　　SIOCSIFBRDADDR: No such device 　　eth0: ERROR while getting interface flags: No such device 　　eth0: ERROR while getting interface flags: No such device 　　Failed to bring up eth0. 　　删除缓存文件，重启后解决。 　　sudorm /etc/udev/rules.&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2969259.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 24 Sep 2008 01:31:00 +0800</pubDate><author>诸航宇</author><comments>http://blog.csdn.net/zhy97031/archive/2008/09/23/2969259.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/09/23/2969259.aspx</guid><dc:creator>诸航宇</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/09/23/2969259.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894518/1109800</fs:itemid></item><item><title>《中华通络操》教学视频下载！</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894519/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2903776.aspx</wfw:comment><slash:comments>6</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2903776.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2903776</trackback:ping><description>弘扬中医药文化 预防心脑血管病  中华通络操在20多个省市推广　　伴随着“中医中药中国行”大型科普宣传活动在全国如火如荼地展开，&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2903776.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 09 Sep 2008 20:59:00 +0800</pubDate><author>诸航宇</author><comments>http://blog.csdn.net/zhy97031/archive/2008/09/09/2903776.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/09/09/2903776.aspx</guid><dc:creator>诸航宇</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/09/09/2903776.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894519/1109800</fs:itemid></item><item><title>简单统计SQLSERVER用户数据表大小(包括记录总数和空间占用情况)</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894520/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2900801.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2900801.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2900801</trackback:ping><description>导读： 　　在SQLSERVER，简单的组合sp_spaceused和sp_MSforeachtable这两个存储过程，可以方便的统计出用户数据表的大小，包括记录总数和空间占用情况，非常实用，在SqlServer2K和SqlServer2005中都测试通过。 　　 　　 　　 　　 　　/**//* 　　 　　1. exec sp_spaceused '表名' （SQL统计数据，大量事务操作后可能不准） 　　 　　 　　2. exec sp_spaceused '表名', true (更新表的空间大小，准确的表空大小，但可能会花些统计时间） 　　 　　 　　3. exec sp_spaceused (数据库大小查询） 　　 　　 　　4. exec sp_MSforeachtable &quot;exec sp_spaceused '?'&quot; (所有用户表空间表小，SQL统计数据，，大量事务操作后可能不准） 　　 　　 　　5. exec sp_MSforeachtable &quot;exec sp_spaceused '?',true&quot; (所有用户表空间表小，大数据库慎用） 　　 　　*/ 　　&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2900801.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 09 Sep 2008 01:46:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/09/08/2900801.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/09/08/2900801.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/09/08/2900801.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894520/1109800</fs:itemid></item><item><title>一次有趣的Debug——使用Lumigent Log Explorer对SQL Server事务日志进行分析，对SQL Server事务、操作进行撤销（恢复）</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894521/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2589563.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2589563.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2589563</trackback:ping><description>导读： 　　前言 　　本文通过一个Bug的分析、解决，概述了使用Lumigent Log Explorer对SQL Server的事务日志进行分析的方法，以及常见的数据库误操作后的恢复、撤销方法 　　Bug描述 　　网站的文章模块有一个评分的功能： 　　用户选择1-5分，点击提交后，文章的评分次数(Stars) + 1、总分(StarTotal) + 分数、平均分(StarAvg) = 新总分 / 新评分次数 　　文章页面显示用户的平均分以及评分次数 　　评分功能中用户最多打5分，最少打1分，某日忽然发现有的文章平均分竟然大于5，很不可思议。出现这个问题，大致的原因大不过有： 　　实现评分逻辑的页面没有验证传入的分数是否合法、有些用户直接提交他们想要的分数来作弊； 　　评分逻辑无误，但计算平均分的算法错误 　　经检查，评分模块不仅验证了分数范围，而且验证了访问来源，用户根本不可能通过提交他们想要的分数达到修改平均分的目的；平均分算法也没有问题。 　　这就奇怪了，只能先查看一下SQL Server的事务日志，这里选用了Lumigent Log Explorer，文章的提交时间是2&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2589563.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 27 Jun 2008 01:17:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/06/26/2589563.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/06/26/2589563.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/06/26/2589563.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894521/1109800</fs:itemid></item><item><title>恢复误删数据（SQL Server 2000）－－Log Explorer</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894522/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2589567.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2589567.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2589567</trackback:ping><description>导读： 　　今天不小心把客户那边的数据库中删了一千多条数据，而且之前又没有备份，真的是很郁闷，后来在网上找到一工具，用起来挺方便，让我躲过一劫。 　　首先来看一下界面： 　　 　　 　　 　　输入服务器地址，用户名及密码后点Connect,进入到下面的界面： 　　 　　 　　在这里选择要恢复数据的数据库，选择Use On-line Log（如果你又备份文件的话就不需要用这个工具了，直接用SQL搞定了）。然后点Attach，进入下面的界面： 　　 　　 　　可以看到左边菜单中有很多功能，我们要恢复数据，首先要查看日志，找出我们误操作的那些日志记录，点Browse下的View Log： 　　 　　 　　这样我们能看到对于这个数据库的所有操作日志，我们可以根据日期等条件来过滤出我们需要的： 　　 　　 　　过滤日志之后，就该到导出数据这一步了，这个工具提供了两种方式，第一是导出到XML或HTML文件中（对应左边菜单中的Export To File），第二是直接在数据库中建新表，然后将数据导入(Export To SQL)。 　　我们来看一下导入到SQL的情况，首先点Export To&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2589567.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 27 Jun 2008 01:17:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/06/26/2589567.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/06/26/2589567.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/06/26/2589567.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894522/1109800</fs:itemid></item><item><title>Linux 正则表达式语法</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894523/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2468925.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2468925.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2468925</trackback:ping><description>导读： 　　一个正则表达式就是由普通字符（例如字符 a 到 z）以及特殊字符（称为元字符）组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。 　　\ 　　将下一个字符标记为一个特殊字符、或一个原义字符、或一个 后向引用、或一个八进制转义符。例如，'n' 匹配字符 &quot;n&quot;。'\n'匹配一个换行符。序列 '\\' 匹配 &quot;\&quot; 而 &quot;\(&quot; 则匹配 &quot;(&quot;。 　　^ 　　匹配输入字符串的开始位置。 　　$ 　　匹配输入字符串的结束位置。 　　* 　　匹配前面的子表达式零次或多次。例如，zo* 能匹配 &quot;z&quot; 以及 &quot;zoo&quot;。 * 等价于{0,}。 　　+ 　　匹配前面的子表达式一次或多次。例如，'zo+' 能匹配 &quot;zo&quot; 以及 &quot;zoo&quot;，但不能匹配 &quot;z&quot;。+ 等价于{1,}。 　　匹配前面的子表达式零次或一次。例如，&quot;do(es)?&quot; 可以匹配 &quot;do&quot; 或 &quot;does&quot; 中的&quot;do&quot; 。? 等价于{0,1}。 　　{n} 　　n 是一个非负整数。匹配确定的 n 次。例如，'o{2}' 不能匹&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2468925.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 22 May 2008 19:10:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/05/22/2468925.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/05/22/2468925.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/05/22/2468925.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894523/1109800</fs:itemid></item><item><title>selinux 下snmp 报错问题解决</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894524/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2462619.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2462619.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2462619</trackback:ping><description>导读： 　　系统启动snmpd后发现有大量的审计日志，困扰了我几个月的时间，都没有办法解决，结果最近在一个老外的文章，然后受到启发后结果把问题给搞定了 　　Jan 14 00:50:39 HMG-102 kernel: audit(1200243039.034:27211): avc: denied { getattr } for pid=19390 comm=&quot;snmpd&quot; name=&quot;/&quot; dev=sda2 ino=2 scontext=system_u:system_r:snmpd_t tcontext=system_u:object_r:home_root_t tclass=dirJan 14 00:50:39 HMG-102 kernel: audit(1200243039.034:27212): avc: denied { getattr } for pid=19390 comm=&quot;snmpd&quot; name=&quot;/&quot; dev=sda2 ino=2 scontext=system_u:system_r:snmpd_t tcontext=system_u:object_r:&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2462619.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 20 May 2008 23:45:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/05/20/2462619.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/05/20/2462619.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/05/20/2462619.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894524/1109800</fs:itemid></item><item><title>301跳转在那些情况下用到</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894525/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2297081.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2297081.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2297081</trackback:ping><description>导读： 　　数据流中头信息(header)中的状态码的一种，表示本网页永久性转移到另一个地址。 　　其它常见的状态码还包括，200表示一切正常，404网页找不到，302暂时转向，等等。 　　为什么要做网址转向？ 　　除了前面介绍过的网址规范化问题外，还有很多需要做网址转向的情形。比如，为保护版权，你拥有不同TLD的多个域名： 　　company.com 　　company.net 　　company.org 　　company.com.cn 　　company.cn 　　等等。 　　很自然这些域名全部指向一个网站。如用company.com为主域名，其它域名就可以转向到company.com。 　　或者你注册了公司全称域名longcompanyname.com，但太长，你也注册了缩写域名方便用户记住lcn.com，其中一个做主域名，另一个就可以转向到主域名。 　　以下的樂思蜀将SEO工作中所需要的301转向代码的总结,我觉得对一些编辑有用,所以将它转过来了,这些文档我之前在老黑BLOG见过.但他的不全面现在将他转过来.以便大家查阅.? 　　1、IIS下301设置 　　Inter&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2297081.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 16 Apr 2008 22:52:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/04/16/2297081.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/04/16/2297081.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/04/16/2297081.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894525/1109800</fs:itemid></item><item><title>Win2003 + IIS6.0 + Serv-U + SQL Server 安全设置</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894526/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2292412.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2292412.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2292412</trackback:ping><description>导读： 　　系统权限的设置 　　１、磁盘权限 　　系统盘只给 Administrators 组和 SYSTEM 的完全控制权限 　　其他磁盘只给 Administrators 组完全控制权限 　　系统盘\Documents and Settings 目录只给 Administrators 组和 SYSTEM 的完全控制权限 　　系统盘\Documents and Settings\All Users 目录只给 Administrators 组和 SYSTEM 的完全控制权限 　　系统盘\windows\system32\config\ 禁止guests组 　　系统盘\Documents and Settings\All Users\「开始」菜单\程序\ 禁止guests组 　　系统盘\windowns\system32\inetsrv\data\ 禁止guests组 　　系统盘\Windows\System32\ at.exe、attrib.exe、cacls.exe、net.exe、net1.exe、netstat.exe、regedit.exe 文件只给 Administr&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2292412.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 15 Apr 2008 09:25:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/04/15/2292412.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/04/15/2292412.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/04/15/2292412.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894526/1109800</fs:itemid></item><item><title>贴一些优质爬虫，封一些“坏”虫(有误封的请联系我)</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894527/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2287699.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2287699.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2287699</trackback:ping><description>贴一些优质爬虫，封一些“坏”虫(有误封的请联系我)&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2287699.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sun, 13 Apr 2008 05:38:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/04/12/2287699.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/04/12/2287699.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/04/12/2287699.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894527/1109800</fs:itemid></item><item><title>参考以下日期写法</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894528/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2283744.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2283744.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2283744</trackback:ping><description>导读： 　　---求相差天数 　　select datediff(day,'2004-01-01',getdate()) 　　转贴: 　　--1.一个月第一天的 　　SELECT DATEADD(mm, DATEDIFF(mm,0,getdate()), 0) 　　--2.本周的星期一 　　SELECT DATEADD(wk, DATEDIFF(wk,0,getdate()), 0) 　　select dateadd(wk,datediff(wk,0,getdate()),6) 　　--3.一年的第一天 　　SELECT DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) 　　--4.季度的第一天 　　SELECT DATEADD(qq, DATEDIFF(qq,0,getdate()), 0) 　　--5.当天的半夜 　　SELECT DATEADD(dd, DATEDIFF(dd,0,getdate()), 0) 　　--6.上个月的最后一天 　　SELECT dateadd(ms,-3,DATEADD(mm, DATEDIFF(mm,0,ge&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2283744.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 12 Apr 2008 09:06:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/04/12/2283744.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/04/12/2283744.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/04/12/2283744.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894528/1109800</fs:itemid></item><item><title>这两天被爬虫搞烦了</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894529/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2274746.aspx</wfw:comment><slash:comments>14</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2274746.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2274746</trackback:ping><description>这两天被爬虫搞烦了&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2274746.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 10 Apr 2008 13:53:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/04/10/2274746.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/04/10/2274746.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/04/10/2274746.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894529/1109800</fs:itemid></item><item><title>鄙视攻击blog的IP</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894530/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2271480.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2271480.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2271480</trackback:ping><description>鄙视攻击blog的IP&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2271480.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 10 Apr 2008 07:19:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/04/09/2271480.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/04/09/2271480.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/04/09/2271480.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894530/1109800</fs:itemid></item><item><title>关于iis HTTPERR日志</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894531/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2251970.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2251970.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2251970</trackback:ping><description>关于iis HTTPERR日志&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2251970.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 05 Apr 2008 03:44:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/04/04/2251970.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/04/04/2251970.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/04/04/2251970.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894531/1109800</fs:itemid></item><item><title>关于 MySQL 优化</title><link>http://item.feedsky.com/~csdn.net/zhy97031/~1109802/137894532/1109800/1/item.html</link><wfw:comment>http://blog.csdn.net/zhy97031/comments/2233642.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhy97031/comments/commentRss/2233642.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2233642</trackback:ping><description>导读： 　　关于 MySQL 优化 　　转载：http://blog.chinaunix.net/u/19637/showart_415407.html 　　关于 MySQL 调优 　　有 3 种方法可以加快 MySQL 服务器的运行速度，效率从低到高依次为： 　　替换有问题的硬件。 　　对 MySQL 进程的设置进行调优。 　　对查询进行优化。 　　替换有问题的硬件通常是我们的第一考虑，主要原因是数据库会占用大量资源。不过这种解决方案也就仅限于此了。实际上，您通常可以让中央处理器（CPU）或磁盘速度加倍，也可以让内存增大 4 到 8 倍。 　　第二种方法是对 MySQL 服务器（也称为 mysqld）进行调优。对这个进程进行调优意味着适当地分配内存，并让 mysqld 了解将会承受何种类型的负载。加快磁盘运行速度不如减少所需的磁盘访问次数。类似地，确保 MySQL 进程正确操作就意味着它花费在服务查询上的时间要多于花费在处理后台任务（如处理临时磁盘表或打开和关闭文件）上的时间。对 mysqld 进行调优是本文的重点。 　　最好的方法是确保查询已经进行了优化。这意味着对表应用了&lt;img src =&quot;http://blog.csdn.net/zhy97031/aggbug/2233642.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 01 Apr 2008 01:20:00 +0800</pubDate><author>zhy97031</author><comments>http://blog.csdn.net/zhy97031/archive/2008/03/31/2233642.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/zhy97031/archive/2008/03/31/2233642.aspx</guid><dc:creator>zhy97031</dc:creator><fs:srclink>http://blog.csdn.net/zhy97031/archive/2008/03/31/2233642.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/zhy97031/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/zhy97031/~1109802/137894532/1109800</fs:itemid></item></channel></rss>