PLS00103:遇到符号"END"



这是我的过程,它给了我PLS00130:遇到符号"结束"错误。 问题出在哪里?? 我错过了什么东西吗??

CREATE OR REPLACE PROCEDURE GETHEATDATA(HEATNO NUMBER)
IS
BEGIN
  FOR program IN (
    select program_id from rml_program where heat_id=HEATNO
    )
  LOOP
  select
  program.program_id,
    program.job_id,
    program.grade,
    count(t.semiproduct_cnt),
    max(t.charging_date),
    min(t.charging_date),
    max(t.reheating_date),
    min(t.reheating_date),
    count(t.rejecting_date),
    count(t.rolling_date),
    count(t.loss_date)
    from
    rml_semiproduct t
    where
    t.program_id = program.program_id;
  END LOOP;
  END;
  END GETHEATDATA;

2 件事。 首先,删除END GETHEATDATA ,其次,您忘记加入程序表。

相关内容

最新更新