哪位大虾帮忙看看下面的代码哪里不对declare
cusor c_test (v_var in integer) is select * from test where id=v_var;
var c_test%rowtype;
begin
open c_test(1);
loop
fetch c_test into var;
dbms_output.put_line(var);
exit when c_test%notfound;
end loop;
end;
/