PLS00103: 遇到符号 "END"
PLS00103: encountered the symbol "END"
这是给我 PLS00130 的程序:遇到符号 "END" 错误。问题出在哪里??我错过了什么吗??
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
,其次,您忘记加入程序 table。
这是给我 PLS00130 的程序:遇到符号 "END" 错误。问题出在哪里??我错过了什么吗??
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
,其次,您忘记加入程序 table。