用户操作
[即时聊天] [发私信] [加为好友]
zhou JamesID:jameszhou
91947次访问,排名1010好友3人,关注者36
PMP & MCAD
jameszhou的文章
原创 92 篇
翻译 0 篇
转载 0 篇
评论 72 篇
James Zhou的公告
Locations of visitors to this page

最近评论
Microsoft_China_Vip:



www.soAsp.net 编程学习网 技术+ 实例应用 讲解不错。 推荐大家!

有很多 技术资料也很好!


chjttony:说多了,没什么意思啊,时间才能证明一切,等到看就有答案了
kenpusney:总感觉微软没前途...
控制帐户:很好。
找了半天什么是控制帐户,终于看到这里有说明。
不过英文看起来恼火。
aladdin:這沒有帶來什麼思想解放阿...

1. HttpContext.RewriteUrl,從2003年就開始用了。

2. M$沒事把這些並不是常常需要用到的把戲,弄得好像和藹可親,但卻常常忘記了: 1) Layering,2) Lightweight,再加上M$常常給出不正確的practice,以致於新的小朋友進公司,還得要花上很多時間把這些錯誤從他們的……
文章分类
收藏
    相册
    链接
    Old Blog - Runner on .NET
    存档
    订阅我的博客
    XML聚合  FeedSky

    原创 SQL 2005 CTE应用 - 月份表收藏

    新一篇: FormView中下拉框 (DropDownList) 的数据绑定 | 旧一篇: MVC 示例代码

    在一个RS报表中需要实现一年内各月份"报价总额"的统计,但是报价表中并不是每个月都有数据,某些月份没有数据,那么需要一个月份表(1-12月)并使用left join来连接报价表。如何用简单等方法生产一个月份表?


    with MonthList(m)
    as
    (
    select m =1
    union all
    select m + 1 from MonthList where m < 12
    )

    select m from MonthList

    结果:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    A common table expression (CTE) can be thought of as a temporary result set that is defined within the execution scope of a single SELECT, INSERT, UPDATE, DELETE, or CREATE VIEW statement. A CTE is similar to a derived table in that it is not stored as an object and lasts only for the duration of the query. Unlike a derived table, a CTE can be self-referencing and can be referenced multiple times in the same query.

    http://msdn2.microsoft.com/en-us/library/ms190766.aspx

    发表于 @ 2008年04月29日 22:26:00|评论(loading...)|编辑

    新一篇: FormView中下拉框 (DropDownList) 的数据绑定 | 旧一篇: MVC 示例代码

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © James Zhou