在oracle中遇到了“end-of-file”符号

时间:2017-06-15 10:50:25

标签: oracle oracle-sqldeveloper

看下面的触发器返回“遇到符号”文件结尾“在oracle中”错误

CREATE OR REPLACE TRIGGER TGR_DST AFTER INSERT ON  ADMISSION FOR EACH ROW
DECLARE 
P_hNO CHAR(10);
P_iNO CHAR(10);
P_ID INTEGER;
BEGIN
 SELECT hNO,iNO INTO P_hNO,P_iNO FROM ADMISSION WHERE iNO IN (SELECT MAX(iNO) FROM ADMISSION );
 SELECT MAX(ID)+1 INTO P_ID FROM Discharge;
 INSERT INTO Discharge(ID,hNO,iNO,in_TIME) VALUES(P_ID,P_hNO,P_iNO,SYSDATE);
END

0 个答案:

没有答案