本帖最后由 hao123yao 于 2012-11-16 11:49:03 编辑

解决方案 »

  1.   


    bulk collect into ids from' ||tab_name; 
    改成
    bulk collect into ids from' ||tab_name.table_name; 
      

  2.   

    正解。问题解决,感谢。初学oracle,希望能与你多交流。
      

  3.   

    execute immediate 'select * from t_wage_basewage a,t_wage_personnel b ,t_Wage_Projecttype c  where a.employeeid = b.userid and b.typeguid=c.guid and a.year = b.year and a.month = b.month and a.companyid = b.companyid  and a.year = 2012 and a.month = 1' ||str;
    上面是存储过程的一部分,str是一个变量,使用||将字符串和变量这样连接起来是否正确啊,
    运行的时候有问题?