当前位置: 代码迷 >> Sql Server >> 使用存储过程把A表的数据复制到B表,该怎么解决
  详细解决方案

使用存储过程把A表的数据复制到B表,该怎么解决

热度:45   发布时间:2016-04-24 10:07:38.0
使用存储过程把A表的数据复制到B表
如题,怎么写一个把A表数据复制到B表中的存储过程
------解决方案--------------------
NewStudent必须要有一列存放class的数据,这列可以名字不同,但是类型要一直或者兼容,假设就叫class

insert into NewStudent(stuname,stunum,sex,class)
select studentname,stunum,sex,class
from Studentdb
  相关解决方案