• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Prayer

            在一般中尋求卓越
            posts - 1256, comments - 190, trackbacks - 0, articles - 0
              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            update case when then 的用法

            Posted on 2010-01-25 14:25 Prayer 閱讀(9401) 評論(0)  編輯 收藏 引用 所屬分類: 數據庫,SQLDB2

            注意要加括號,在更改多個列的時候

             

            ALTER      proc usp_clearActiveScoreCalcCommentScore
            as
            begin
            update tbForum set UltimoScore=
               (case
                when AllScore-RemainScore<0 then 0
                else AllScore-RemainScore
               end),AllScore=
               (case
                when ActivityDegree>=0 and ActivityDegree<=300 then 250
                when ActivityDegree>=301 and ActivityDegree<=800 then 500
                when ActivityDegree>=801 and ActivityDegree<=2000 then 1000
                when ActivityDegree>=2001 and ActivityDegree<=4000 then 2000
                when ActivityDegree>=4001 and ActivityDegree<=8000 then 4500
                when ActivityDegree>8000 then 9000  
               end),UltimoDegree=ActivityDegree,ActivityDegree = 0
            update tbForum set RemainScore=AllScore
            end

            9999国产精品欧美久久久久久| 亚洲精品午夜国产VA久久成人| 久久精品国产半推半就| 国产精品日韩欧美久久综合| 国产午夜精品理论片久久| 久久人人青草97香蕉| 久久久久久毛片免费播放| 超级碰久久免费公开视频| 欧美日韩精品久久免费| 91精品国产综合久久久久久| 久久久久亚洲爆乳少妇无 | Xx性欧美肥妇精品久久久久久| 久久亚洲国产精品五月天婷| 久久精品一区二区三区AV| 日本精品久久久久中文字幕8| 思思久久99热只有频精品66| 国产精品久久影院| 久久久久久国产a免费观看黄色大片| 精品久久久久久亚洲精品| 一本色综合久久| 国产精品青草久久久久福利99| 久久久久无码精品国产| 久久婷婷午色综合夜啪| 久久露脸国产精品| 久久久99精品一区二区| 2021久久国自产拍精品| 中文字幕无码免费久久| 三级三级久久三级久久| 久久91这里精品国产2020| 精品久久8x国产免费观看| 久久久亚洲AV波多野结衣| 国产精品美女久久久久AV福利| 久久久久久久久久久久中文字幕| 久久久久久久91精品免费观看| 精品久久久久成人码免费动漫| 人妻系列无码专区久久五月天| 国产成人精品久久| 免费一级做a爰片久久毛片潮| 国产精久久一区二区三区| 久久精品草草草| 国产精品永久久久久久久久久|