oracle - Is it possible to go back to line after error in PL/SQL? -


i have tons of insert statements.

i want ignore errors during execution of these lines, , prefer not wrap each line seperately.

example:

try     insert 1     insert 2     insert 3 exception     ... 

i want if exception thrown in insert 1, ignore , go perform insert 2, , etc.

how can it?

i'm looking "resume next" in vb.

if can move inserts sql script , run them in sql*plus, every insert run own , script continue run.

if using plsqldeveloper (you taged it), open new command window (wich sql script run sql*plus) , put staements this:

insert table your_table values(1,'aa'); insert table your_table values(2/0,'bb'); insert table your_table values(3,'cc'); commit; 

even though statement (2) throw execption, since it's not in block continue next command.

update: according @cheranshunmugavel comment, add

whenever sqlerror continue none 

at top of script (especially if using sql*plus there difault exit).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -