【发布时间】:2020-11-21 09:03:03
【问题描述】:
如果不满足条件,是否可以退出/跳过 begin end 块?
例子:
DECLARE
my_var BOOLEAN := TRUE;
BEGIN
IF my_var THEN
EXIT_BEGIN_END_HERE; -- Exits the block but continue execution after it!
END IF;
-- Other stuff happens here. Won't be executed if IF above is true
INSERT INTO asdf
VALUES ('asdf', 'asdf');
END;
-- Other stuff happens here
【问题讨论】:
标签: oracle if-statement plsql skip