select seq_i.NextVal into i from dual;
此条语句中要注意变量seq_i.NextVal的唯一性,不能重复。
strSQL:='create table abc_' || to_char(i) || '(f1 int)';
改为:        
strSQL:='create table abc_' || to_char(i) || ' (f1 int)';

解决方案 »

  1.   

    strSQL:='select f1 into intSel from abc_' || to_char(i) || ' where rownum=1';           是错误的,可参考:
    select tab.a from (select f1 a from abc_1 group by f1) tab where rownum=1;
      

  2.   

    strSQL:='select f1 from abc_' || to_char(i) || ' where rownum=1';        
    execute immediate strSQL into intSel ;
      

  3.   

    谢谢各位,beckhambobo(beckham)是正确的!