Можно ли выйти/пропустить блок 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