RC1  IN OUT RISEOFFICEALLEMPLOYEEPkg.RCT1%type

解决方案 »

  1.   

    (p_RC1  IN OUT RISEOFFICEALLEMPLOYEEPkg.RCT1)
    --把游标名不要与包中的声明游标名相同  
    as
    ...
    str varchar2(500);
    begin
    str:='SELECT D.Country "Country",  D.State "State",  D.City "City",  D.Address "Address",  D.Office "Office",  D.Name "Department_Name",  D.TabIndex "DTagIndex",  E.Email "Email",  E.Name "Name",  E.Sex "Sex",  E.BirthDay "BirthDay",  E.JobTitles "JobTitles",  E.OfficePhone "OfficePhone",  E.OfficeAddress "OfficeAddress",  E.OfficeZipCode "OfficeZipCode",  E.TabIndex "ETagIndex" FROM risemanager.EmployeeDefine E, Risemanager.DepartmentDefine D 
    WHERE E.Department_ID <> -1 
     AND E.Department_ID = D.ID 
    ORDER BY "DTagIndex" , "ETagIndex"' ;
    open p_RC1 for str;
    end;
    /