清空表 

oracle --truncate truncate table gh_qytc_ls; //从一个表插入到另外一个表 insert into gh_qytc_ls SELECT * FROM gh_qytc tc; 快速copy一张表数据到另外一张表 1、创建一个临时表,字段和要用的表相同 create table gh_qyghgx_temp as select * from gh_qyghgx where qybm='F227'; 2、查询临时表是否创建成功 select * from gh_qyghgx_temp; 3、删除临时表的那条记录 truncate table gh_qyghgx_temp; 4、把要备份的表的数据放入临时表 insert into gh_qyghgx_temp select * from gh_qyghgx 5、查询是否插入成功 select count(*) from gh_qyghgx_temp;

 

相关文章:

  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2021-09-22
  • 2022-02-05
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
相关资源
相似解决方案