解决方案 »

  1.   

    最近一点,定义变量的时候只能在DECLARE和BEGIN之间,否则也会报PLS-00103
      

  2.   

    只有声明,没有写begin部分。
    代码已经格式化过了,所以才问的。
      

  3.   

    都没有BEGIN END怎么编译过?
    如果你要测试声明可以这样:declare cursor cs_table_students is select id from table_students;student_id table_students.id%type;
    begin
    NULL;
    END;
    经测试,这样声明是完全没问题的