• <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

            久久亚洲AV无码西西人体| 亚洲综合久久久| 久久91亚洲人成电影网站| 成人久久综合网| 久久久久一本毛久久久| 久久久亚洲AV波多野结衣| 国产产无码乱码精品久久鸭 | 色诱久久av| 久久天天躁狠狠躁夜夜躁2O2O| 国产激情久久久久影院老熟女| 欧美成a人片免费看久久| 久久91综合国产91久久精品| 亚洲а∨天堂久久精品| 91精品国产色综久久| 亚洲国产精品无码久久一区二区| 狠狠色伊人久久精品综合网| 天天躁日日躁狠狠久久| 亚洲国产精品无码久久久久久曰| 久久夜色精品国产网站| 狠狠色丁香婷婷久久综合| 久久久精品国产亚洲成人满18免费网站| 中文字幕日本人妻久久久免费| 久久久国产精华液| 国内精品久久久久久久影视麻豆| www性久久久com| 大伊人青草狠狠久久| 无码伊人66久久大杳蕉网站谷歌| 亚洲一区精品伊人久久伊人| 久久国产成人午夜aⅴ影院| 91精品国产91久久久久久蜜臀| 国产精品一区二区久久不卡| 久久精品蜜芽亚洲国产AV| 久久久久99精品成人片试看| 午夜不卡久久精品无码免费| 亚洲精品国精品久久99热一| 精品久久久久久中文字幕人妻最新| 亚洲色欲久久久综合网| 久久精品国产亚洲AV无码麻豆| 人妻精品久久久久中文字幕69| 久久婷婷五月综合色高清| 欧美久久精品一级c片片|