唯一列:gradeid
第一列:courcredit
第二列:getcredit
第三列:archment当courcredit与getcredit的值不同的时候,并且同时archment满足一定条件时,将getcredit的值更新为courcredit的值.蓝色为条件,红色为要做的行为.

解决方案 »

  1.   

    update tableA set getcredit = courcredit where courcredit <> getcredit and archment 的条件
      

  2.   

    update tab set getcreadit=courcredit where courcredit=getcredit and archment='Bule'
      

  3.   

    update tb set getcredit=courcredit where courcredit<>getcredit and archment ='你的条件'
      

  4.   

    不好意思上边写错了。
    update tab set getcreadit=courcredit where courcredit<>getcredit and archment='Bule'
      

  5.   

    UPDATE TB SET GETCREDIT=COURCREDIT WHERE COURCREDIT<>GETCREDIT AND ARCHMENT........
      

  6.   

    update tb set getcredit=courcredit where courcredit<>getcredit and archment=...
      

  7.   

    update tb set getcredit=(case when (courcredit<>getcredit and archment=条件)then courcredit  else getcredit end)
      

  8.   

    update tb set getcredit=courcredit where courcredit<>getcredit and archment 条件
      

  9.   


    update tableA 
    set getcredit = courcredit 
    where courcredit <> getcredit and archment 的条件
      

  10.   

    update table
     set getcredit=(case when (courcredit <>getcredit and archment=条件)then courcredit  else getcredit end)
      

  11.   

    update tb 
    set getcredit = courcredit 
    where courcredit<>getcredit and archment 满足条件
      

  12.   

    update tb set  getcredit = courcredit 
    where courcredit<>getcredit and archment = '你的条件'
      

  13.   

    唯一列:gradeid
    第一列:courcredit
    第二列:getcredit
    第三列:archment当courcredit与getcredit的值不同的时候,并且同时archment满足一定条件时,将getcredit的值更新为courcredit的值.蓝色为条件,红色为要做的行为. update tbl set getcredit=courcredit where courcredit!=getcredit and archment ='满足条件'