一:如果要插入目标表不存在:

select * into 目标表 from 表 where ...

二:如果要插入目标表已经存在:

insert into 目的表 select * from 表 where 条件

三:如果是跨数据库操作的话: 怎么把A数据库的atable表所查询的东西,全部插入到B 数据库的btable表中

select * into B.btable from A.atable where ...

同样,如果是跨服务器的,也是可以的。

一:如果要插入目标表不存在:

select * into 目标表 from 表 where ...

二:如果要插入目标表已经存在:

insert into 目的表 select * from 表 where 条件

三:如果是跨数据库操作的话: 怎么把A数据库的atable表所查询的东西,全部插入到B 数据库的btable表中

select * into B.btable from A.atable where ...

同样,如果是跨服务器的,也是可以的。

相关文章:

  • 2021-10-31
  • 2022-01-26
  • 2021-11-27
  • 2022-12-23
  • 2021-08-03
  • 2022-01-03
  • 2021-06-13
  • 2022-12-23
猜你喜欢
  • 2021-09-01
  • 2022-03-02
  • 2021-07-07
  • 2021-05-23
相关资源
相似解决方案