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!

No_data_found exception in insert into ... select statement

681567Mar 18 2010 — edited Mar 18 2010
Hai,
I have an doubt in plsql exceptions. In the below mentioned plsql program,

begin

insert into abc select * from xyz a, cdf b where a.c1 = b.c2;

exception
when no_data_found then
do some operations

end;

In the above pl/sql block, if the select statement returns zero rows, whether the exception will be raised or not? If not, how to acheive the same. Any alternative available.

Thanks in advance.

Regards
Sridhar
This post has been answered by Boneist on Mar 18 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2010
Added on Mar 18 2010
6 comments
6,418 views