insert into 表(col1,col2,...,单位)
select col1,col2,... from 表 where  单位='所选的单位'

解决方案 »

  1.   

    update yourtable set 单位2=单位1
      

  2.   

    不会意思错了:
    insert into 表(col1,col2,...,单位)
    select col1,col2,...,'所选的单位' from 表 where  单位='所选的单位'
      

  3.   

    insert into 表(col1,col2,...,单位)
    select col1,col2,...,'新单位' from 表 where  单位='原始单位'
      

  4.   

    update 表  set 单位1字段=单位2字段,........
     from 表 aa
          ,(select * from 表 where 单位='单位2') bb
     where aa.单位='单位1' and  (单位1和单位的关联条件)
      

  5.   

    同表内字段复制:
    update table set company2=company1
    不同表内容复制(两表须结构相同):
    insert into tablenew
    select * from table