sqlserver 插入多行数据

 

insert into t (f) select f1 union

       select f2 union

       select f3 多值插入

 

select xxx into t2 from t1

 

update t1 set xx = (select xx from t2 where id=t1.id)

posted on 2012-04-21 00:38  阿蛆  阅读(856)  评论(0编辑  收藏  举报