this is a extra element for clear the floated element
如何在oracle中用SQL创建临时表?
  • 12/31
  • 2008
性能调优 | Oracle 3777 次查看
  需要创建一个临时表,请举例说明,谢谢!

  是TEMPORARY

  CREATE

  GLOBAL

  TEMPORARY

  TABLE

  flight_schedule

  (

  startdate

  DATE,

  enddate

  DATE,

  cost

  NUMBER)

  create

  proecdure

  name_pro

  as

  str

  varchar2(100);

  begin

  str:='CREATE

  GLOBAL

  TEMPORARY

  TABLE

  TABLENAME

  ON

  COMMIT

  PRESERVE

  ROWS

  as

  select

  *

  from

  others_table';

  execute

  immediate

  str;

  end;

  /

  
您可能感兴趣的:

更多相关内容