当前位置: 代码迷 >> Sql Server >> 这条语句怎么写
  详细解决方案

这条语句怎么写

热度:103   发布时间:2016-04-27 19:35:16.0
这条语句如何写
将A表中的a列内容插入到B表中的b列,如何写这条sql语句

------解决方案--------------------
通过什么来关联啊
一般是update b set column1=b.column1 from b bwhere column2=b.column2
------解决方案--------------------
一般是update a set column1=b.column1 from b bwhere column2=b.column2
------解决方案--------------------
insert B(b) select a from A
------解决方案--------------------
insert into B(b) select a from A
  相关解决方案