一、待插入目標表不存在:java
select * from 目標表 from 表 where 條件
二、待插入目標表已經存在:數據庫
insert into 目標表 select * from 表 where 條件
三、若是是跨數據庫操做的話,將A數據庫的atable表所查詢的數據所有插入到B數據庫的btable表中服務器
select * into B.btable from A.table where 條件
四、跨服務器code
相似3