Mam skrypt psql oraz SQL, który wygląda tak:Czy istnieje sposób na przywrócenie i zamknięcie skryptu psql w przypadku błędu?
-- 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
Czy to możliwe, aby zakończyć skrypt i zatrzymać przetwarzanie resztę skryptu?
myślę, że to jest to. Dziękuję Ci! – dtc