当前位置: 代码迷 >> Sql Server >> sql语句,是关于一字段下内容到另一字段内容的复制
  详细解决方案

sql语句,是关于一字段下内容到另一字段内容的复制

热度:94   发布时间:2016-04-27 20:52:42.0
求一个sql语句,是关于一字段下内容到另一字段内容的复制
表wlw,有两个字段icount和ncount,其中icount有内容,ncount内容为空
如下:
icount     ncount
    12                      
    13                      
    22                    
    32                      
---------------
要得到的结果为
icount     ncount
    12             12        
    13             13          
    22             22        
    32             32

怎么用sql语句实现,要求是通用的sql语句,谢谢

------解决方案--------------------
update wlw
set ncount=icount
  相关解决方案