create or replace procedure all_user()
as
type p_cur is ref cursor;
v_cur p_cur ;
v_id number ;
v_name t_user.name%tyep ;
v_sex t_user.sex%type ;
v_birthday date;
begin
open v_cur for select id,name,sex,birthday from t_user;
loop
fetch v_cur into v_id,v_name,v_sex,v_birthday;
exit when v_cur%notfound;
dbms_output.put_line('ID:'||v_id||',姓名:'||v_name||',性别:'||v_sex||',生日:'||v_birthday);
end loop;
close v_cur;
end ;出现错误:
警告: 创建的过程带有编译错误。SQL> show error ;
PROCEDURE ALL_USER 出现错误:LINE/COL ERROR
-------- -----------------------------------------------------------------
1/20 PLS-00103: 出现符号 ")"在需要下列之一时:
  <an identifier>
  <a double-quoted delimited-identifier> current delete exists
  prior