退出时 update table set counter = 1其中counter为NULL; - 循环直到满足条件 END LOOP;
答案 0 :(得分:0)
EXIT WHEN FLAG=1/*give some exit criteria here .You wrote update statement which was incorrect*/;
--update table set counter=1 where counter is NULL;
-- LOOP until condition is met
END LOOP;
答案 1 :(得分:0)
EXIT WHEN
期望一个布尔表达式作为其参数,但您提供了一个UPDATE
语句,而不是表达式。
您需要指定循环退出时必须满足的条件。