一:如果要插入目标表不存在:
select * into 目标表 from 表 where …
二:如果要插入目标表已经存在:
insert into 目的表 select * from 表 where 条件
例:insert into 目的表(字段1,字段2)select 字段1,字段2 from 表 where 条件,同样也可以插入变量,如把字段2修改为常量5,即插入数字5
三:如果是跨数据库操作的话: 怎么把A数据库的atable表所查询的东西,全部插入到B 数据库的btable表中
select * into B.btable from A.atable where …
同样,如果是跨服务器的,也是可以的。