`

批量添加、修改 (未完待续)

阅读更多
批量添加:
insert into A(a,b,c) select t.a,t.b,t.c from B t

批量修改:
update T1 set T1.A列=
(select T2.A列 from T2 where T2.B列=T1.A列 and rounum<=1)
where exists(select 1 from T2 where T2.B列=T1.A列 )  --加上这句,避免勿更新一些资料!
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics