PL / SQL过程,游标,PLS-00103错误

时间:2017-05-07 22:16:12

标签: plsql cursor procedure

请问,这个程序有什么不好。错误是8,9行中的PLS-00103

create or replace PROCEDURE test_one(l_f_name VARCHAR2,l_l_name VARCHAR2)
IS  
  CURSOR c1(f_name VARCHAR2,l_name VARCHAR2) IS 
    SELECT lastname,firstname
    FROM CUSTOMER;

  v_complex c1%ROWTYPE;
  f_name = l_f_name;
  l_name = l_l_name;

BEGIN
  open c1(f_name,l_name);
  fetch c1 into v_complex;

  dbms_output.put_line(v_complex.lastname|| '    ' ||v_complex.firstname);

  exit when c1%notfound;
  close c1;
end;

0 个答案:

没有答案