在下面的过程中,我做错了,我没有得到错误的地方,当期待以下之一时“遇到符号”结束“请帮助我并用 wat 解释程序中的错误。
create or replace PROCEDURE CRangeproc(in_termid IN VARCHAR2,in_cardno IN VARCHAR2,p_ResultSet OUT SYS_REFCURSOR,outcount OUT NUMBER)
AS
BEGIN
select count(*) into outcount from cardrangetable where PAN_LOW <= in_cardno AND PAN_HIGH >= in_cardno and terminal_id = in_termid;
IF outCount = 1 then
Open p_ResultSet FOR
select ISSUERTABLEID,ACQUIRERTABLEID,PANLENGTH from cardrangetable where PAN_LOW <= in_cardno AND PAN_HIGH >= in_cardno and terminal_id = intermid;
CLOSE p_ResultSet;
else
end if;
End CRangeproc;
提前致谢