create table table_name as select * from table_name1;  ---复制表,包括数据,不会创建索引

create table table_name as select * from table_name1 where 1=2; ---复制表,不包括数据

insert into table_name select * from table_name1; ---复制表数据

insert into table_name (column1,column2) select column1x,column2x from table_name1; ---复制部分表数据

 

相关文章:

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