快速建表:
create table temptable as select * from tableName;

解决方案 »

  1.   


    create global temporary table as select * from tableName
      

  2.   

    Temporary Table ExampleThe following statement creates a temporary table today_sales for use by sales representatives in the sample database. Each sales representative session can store its own sales data for the day in the table. The temporary data is deleted at the end of the session.CREATE GLOBAL TEMPORARY TABLE today_sales
       ON COMMIT PRESERVE ROWS 
       AS SELECT * FROM orders WHERE order_date = SYSDATE;
      

  3.   

    create  global temporary table temp as select * from tb ;
    --创建一个临时表结构还得往里边插入数据