Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要While...Do在这样的存储过程中跳过循环迭代
While...Do
While (v_counter <= :v_total) do begin If (<condition>) then continue; ... end
但是CONTINUE直到 Firebird 3.0 才可用。那么有一个工作回合吗?
CONTINUE
如果您想在没有 的循环中跳过迭代CONTINUE,则只需对块的其余部分使用 continue-condition 的逆:
While (v_counter <= :v_total) do begin If (NOT <condition>) then BEGIN ... END end