看上去没必要用存储过程嘛CREATE TABLE desttab AS SELECT * FROM oritab

解决方案 »

  1.   

    如果目标表已经存在truncate table desttab;insert into desttab select * from oritab;
      

  2.   

    begin
    create table temp1 as select * from temp2;
    end;
      

  3.   

    你的目的是什么?简单的倒入?
    那么很简单.直接写条SQL语句就解决了,不过,在倒入的时候要注意字段名要对应.
      

  4.   

    insert into table1 (字段1,字段2,。)  select (字段1,字段2,。) from table2 where ....
    没有必要什么都写过程吧?简单的东西就不要复杂化了