一、根据原表创建临时表

CREATE TEMP TABLE temp_testbulkcopy as (select * from testbulkcopy limit 0);

 

二、本次使用完临时表后自动删除

CREATE TEMP TABLE temp_testbulkcopy ON COMMIT DROP as (select * from testbulkcopy limit 0);

ON COMMIT DROP  表示本次事务提交后就自动删掉

 

相关文章:

  • 2022-12-23
  • 2021-09-21
  • 2021-10-15
  • 2021-08-06
  • 2021-12-28
  • 2022-12-23
  • 2022-01-14
猜你喜欢
  • 2021-07-20
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
相关资源
相似解决方案