/**1. 用select 创建相同表结构的表*/
create table test_tbl2 as select * from test_tbl1 where 1<>1;


/**
  2. 用insert into .. select 插入
*/
insert into test_tbl2(id,name,salary) select id,name,salary from test_tbl1 where id<6;

相关文章:

  • 2021-09-16
  • 2021-06-28
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案