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!

Conditional Insert

DirdNov 24 2009 — edited Nov 25 2009
Hi,

Is it possible to do a conditional insert? e.g.
IF :P2_NAME != (SELECT name from hk.appname where name = :P2_NAME) then
INSERT....
END IF;
So if the value of :P2_NAME doesn't exist within the table then it will be inserted...its to be an addition to a currently existing APEX process (checks that field values aren't null then enters a record into a different table than hk.appname).

Thanks for any help.

Mike
This post has been answered by Solomon Yakobson on Nov 24 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2009
Added on Nov 24 2009
9 comments
1,927 views