Tôi có một kịch bản psql trông như thế này:Có cách nào để khôi phục và thoát khỏi tập lệnh psql do lỗi không?
-- first set of statements
begin
sql statement;
sql statement;
sql statement;
exception
when others then
rollback
write some output
(here I want to exit the entire script and not continue on to the next set of statements)
end
/
-- another set of statements
begin
sql statement;
sql statement;
sql statement;
exception
when others then
rollback
write some output
(here I want to exit the entire script and not continue)
end
/
... and so on
Có thể thoát khỏi kịch bản và ngừng xử lý phần còn lại của kịch bản?
Tôi nghĩ rằng đây là nó. Cảm ơn bạn! – dtc