象这样的insert into t2语句也必须用execute immediate 动态执行吗

解决方案 »

  1.   

    open c_mycursor for 'select * from t1';
      fetch c_mycursor into tmpuser,tmppwd,tmptext;
      loop
      
      insert into t2 .............
               .............
      exit when c_mycursor%notfound;
      end loop;
     close c_mycursor;修改以下,看情况如何?
    insert into t2 (muser,mpwd) (select * from t1);
    若不行,把它改成动态,应该没问题。
      

  2.   

    以前是mssql的后台数据库,要移植到oracle中,是用了很久的系统了,不能随便改结构的!,mssql中操作临时表很方便,但在oracle中就不那么方便了!