我没有得到语法错误的地方,MySql 说未知系统已完成:分隔符 |
CREATE PROCEDURE UPDATELOMON ()
BEGIN
DECLARE First_cur CURSOR FOR SELECT oraginal_level,level FROM LOMTEMP;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done := TRUE;
OPEN First_cur;
FirstLoop: LOOP
FETCH First_cur INTO oraginal,toupdate;
IF done THEN
LEAVE FirstLoop;
END IF;
CALL updt(oraginal,toupdate);
END LOOP FirstLoop;
CLOSE First_cur;
END;