唯一列:gradeid
第一列:courcredit
第二列:getcredit
第三列:archment当courcredit与getcredit的值不同的时候,并且同时archment满足一定条件时,将getcredit的值更新为courcredit的值.蓝色为条件,红色为要做的行为.
第一列:courcredit
第二列:getcredit
第三列:archment当courcredit与getcredit的值不同的时候,并且同时archment满足一定条件时,将getcredit的值更新为courcredit的值.蓝色为条件,红色为要做的行为.
解决方案 »
- 写了个视图,在management studio 中右击视图名--打开视图,结果导致management studio 崩溃,请问是怎么回事?
- sql server 有没有不等于号(!=)和减号的(minus),我这两道题这样做对不对?
- 几个以前的面试题,我做的对不对
- 一段错误代码!怎么解决?
- 远程MSSQL 报错,error:26-定位指定的服务器/实例时出错
- 如何将1 2 3 4 5 6显示为01 02 03 04 05 06,急盼在线解决
- UPDATE无法更新
- SQL的模糊查找问题?谢谢!!!
- 存储过程怎么同时返回记录数和记录集
- 在本地存储过程里调用远程机器上的存储过程,出错:错误7405,...
- 求一个视图或者函数
- 在线等,求sql
update tab set getcreadit=courcredit where courcredit<>getcredit and archment='Bule'
update tableA
set getcredit = courcredit
where courcredit <> getcredit and archment 的条件
set getcredit=(case when (courcredit <>getcredit and archment=条件)then courcredit else getcredit end)
set getcredit = courcredit
where courcredit<>getcredit and archment 满足条件
where courcredit<>getcredit and archment = '你的条件'
第一列:courcredit
第二列:getcredit
第三列:archment当courcredit与getcredit的值不同的时候,并且同时archment满足一定条件时,将getcredit的值更新为courcredit的值.蓝色为条件,红色为要做的行为. update tbl set getcredit=courcredit where courcredit!=getcredit and archment ='满足条件'