犬者
“说了你又不听,听又不懂,懂又不做,做又做错,错又不认,认又不改,改又不服,不服也不说,那叫我怎么办?!”

【电脑】哈哈!为什么一关灯躺下睡觉灵感就来了?!

折腾了一个晚上的问题终于解决了……

在关电脑、日光灯,刚刚躺下睡觉的时候,灵感来了……

立刻起来开电脑,按照灵感的思路去做……

更新了用户统计数据 里面提到的傻逼存储过程只要用下面两行就可以轻松搞定……我太佩服自己了……无限自我崇拜ing……

CREATE PROCEDURE update_stat_blogger  AS
update UserDefineCategory set files =
 (select count(*) from Articles a 
    where a.cate=UserDefineCategory.[index] )
      where exists (select [index] from UserDefineCategory)

update blogger set blogs =
 (select sum(files) from UserDefineCategory u
    where u.blogger=blogger.[index] )
      where exists (select [index] from blogger)
GO
278
问天 @1/21/2004 5:18:41 AM
View blogs in this category:电脑


w 在 1/21/2004 6:15:16 PM 说:

well done.

Please leave your comment here

 
  名字:
  主页:
  内容:
 

   


Navigation
Blogwind
犬者首页
Contact


个人档案


“说了你又不听,听又不懂,懂又不做,做又做错,错又不认,认又不改,改又不服,不服也不说,那叫我怎么办?!”



Categories
死结(27)
电脑(177)
心情(181)
天影(25)
乱弹(211)
博客(82)
音乐(18)
饕餮(30)
读书(20)
电影(28)
网摘(5)
希望(37)
汕头(10)
经济(8)
苹果(19)
跋涉(7)



Archive
2008年11月
2008年10月
2008年9月
2008年8月
2008年7月
2008年6月
2008年5月
2008年4月
2008年3月
2008年2月
2008年1月
2007年12月
2007年11月
2007年10月
2007年9月
2007年8月
2007年7月
2007年6月
2007年5月
2007年4月
2007年3月
2007年2月
2007年1月
2006年12月
2006年11月
2006年10月
2006年9月
2006年8月
2006年7月
2006年6月
2006年5月
2006年4月
2006年3月
2006年2月
2006年1月
2005年12月
2005年11月
2005年10月
2005年9月
2005年8月
2005年7月
2005年6月
2005年5月
2005年4月
2005年3月
2005年2月
2005年1月
2004年12月
2004年11月
2004年10月
2004年9月
2004年8月
2004年7月
2004年6月
2004年5月
2004年4月
2004年3月
2004年2月
2004年1月
2003年12月



My Links
5G
bloglines
时尚摄影师奇科的博客
颜如玉
最爱卫斯理

RSS 2.0

Username:
Password:
 Remember me