当前位置: 代码迷 >> Sql Server >> 有关数据迁移的有关问题
  详细解决方案

有关数据迁移的有关问题

热度:79   发布时间:2016-04-27 15:45:09.0
有关数据迁移的问题
现在有两张表
A表有10个字段,共100000条数据;
B表有4个字段,其中两个字段与A表一致,并需要用A表中该字段的2000条数据填充,如何实现,请高手指点

------解决方案--------------------
insert B
select top 2000 col1, col2, col3, col4 from A order by columnName

------解决方案--------------------
不好意思,
insert into B
select top 2000 col1, col2, col3, col4 from A order by columnName
  相关解决方案