首先你先在SQL PLUS下测试select funcname,isadd,isupdate,isdelete from functionTable ft,popedomTable pt
where ft.funcid in(
select  pt.funcid from popedomTable  
where  pt.userGroupid=(
select ut.userGroupid from usersTable ut 
where ut.userid=pUserID))这条语句是否正确?

解决方案 »

  1.   

    LGQDUCKY(飘) 
    测试过了,绝对没有错误,能够按照要求提出正确数据!
    所以说,我比较头疼!
    是不是得需要用到select into 语句???
      

  2.   

    result是什么东西?是游标吗?
      

  3.   

    result是游标类型的参数,
    我在登录的存储过程中也是这么写的,就没有问题
    for
    select funcname,isadd,isupdate,isdelete from functionTable ft,popedomTable pt
    where ft.funcid in(
    select  pt.funcid from popedomTable  
    where  pt.userGroupid=(
    select ut.userGroupid from usersTable ut 
    where ut.userid=pUserID))
    end;
    上面的select如果没有子查询,编辑就没有问题,所以我问题就是这里了 ,请大家帮我想想办法吧!
    万分感谢!