声名:A,B ,都是表

--B表存在两表结构一样
insert into B select * from A

若两表只是有部分(字段)相同,则

insert into B(col1,col2,col3,col4,...) select col1,col2,col3,col4,... from A where...

把表A插入到表B中去。

--B表不存在
select * into B from A

//

select (字段1,字段2,...) into B from A

相关文章:

  • 2021-12-14
  • 2021-06-10
  • 2022-03-09
  • 2022-12-23
  • 2021-12-01
  • 2021-12-18
  • 2021-11-13
  • 2022-02-07
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2021-11-28
  • 2022-02-22
  • 2021-11-13
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案