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!

if exists replacement?

576808Jun 15 2007 — edited Jun 16 2007
Hello,

I am looking for a way to do something like this in a procedure. Basically I want to verify that records exist in a table before doing a bunch of modifcations to those records. Since "if exists" isn't a valid pl/sql statement, I'm not sure how this sort of query is best performed?

if exists (select job from table1 where rownum < 2)
then
......
end if
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2007
Added on Jun 15 2007
4 comments
717 views