I have sql insert script like below
insert into table......from table2.;
drop table2.....;
drop table3....;
commit;
is it possible to do condition “insert” must be success before proceed with “drop table2 and table3” in oracle?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are running under SQLplus :
Also note that the commit operation is optional, as DDL statements (like DROP instructions) will always commit before processing.