SQL 把一个数据库里面的某张表里的数据插入到另外一个数据库里面的一张表

insert into 需要插入的表名 select * from 数据库.dbo.表名 where 插入条件='2016-06-02 00:00:00.000'

insert into inventory_hr select * from CS12.dbo.inventory_hr where storage_date='2016-06-02 00:00:00.000'

猜你喜欢

转载自blog.csdn.net/mjb115889/article/details/82471436