Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Stored Procedure
Hi,
I modified the code to make a call from java, but I can not figure out what argument type
to pass on.
I do not have problems when I use Sybase or MS SQL Server I get the ResultSet and
all works fine.
Thanks,
Tony
create or replace package types
as
type cursorType is ref cursor return emp%ROWTYPE;
end;
/
create or replace procedure spListEmp (l_cursor IN OUT types.cursortype) as
begin
open l_cursor for select * from emp order by ename;
end;
/
Connection con = DBUtil.connect(
"jdbc:odbc:oracle8", "scott", "tiger",
try {
cstmt = con.prepareCall("{call spListEmp(?)}");
cstmt.set ?????
ResultSet rs = cstmt.getResultSet();
..... Received on Tue Feb 24 1998 - 00:00:00 CST
![]() |
![]() |