oracle 过程取数据问题 急急急,在线等
我想用java取整张表的数据,用过程取 效果跟 select * from emp 一样 过程该怎么写?
create or replace procedure usp_test as
cursor cu is select * from emp;
v_row emp%rowtype;
begin
open cu;
loop
fetch cu into v_row;
exit when cu%notfound;
dbms_output.put_line(v_row.empno||' '||v_row.ename);
end loop;
close cu;
end;
我是这样写的 有什么不对