Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why when sub query raises exception, the query can continue

lxiscasJul 11 2017 — edited Jul 11 2017

Hi, Dude:

  I would understand why when sub query raises exception, the query can continue? given the following statement:

delete *

from A

where cntl_number in

(select cntl_number

from B)

the sub query fails because we give the wrong column name, however, to my surprise, Oracle executed the statement and delete the rows of table A completely. now we have to recover it. when I executed the sub query, it returned the ORA-00904 invalid identifier because column name was wrong. I wonder if this is due to some configuration in Oracle?

Thank you very much!

Sam

This post has been answered by Frank Kulash on Jul 11 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2017
Added on Jul 11 2017
5 comments
4,876 views