Skip to Main Content

Database Software

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!

Insert when not exists

634133Apr 15 2008 — edited Apr 15 2008
Is there anyway of getting owb to implement the following sql without
resorting to using a insert update operation:

insert into desttable
(select * from myview where not exists (select null from b where desttable.emp_id=myview.emp_id)

This sounds almost like the perfect application for an insert/update (or merge)
operation. But in my case, I do not want to update the destination tables if I get
a match, I am only interested in using the insert part of a merge operation. I could
create a dummy update clause, but that would be a waste of resources.

Any ideas?


Graeme
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2008
Added on Apr 15 2008
2 comments
4,927 views