Skip to Main Content

APEX

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 update in PL/SQL

Jian-cdoMay 19 2017 — edited May 22 2017

Hello,

When I pass value to application process, I'd like to do this: for apex_application.g_x01, if it's not null, then update column A; if not, don't update the column.  So I wonder if there is some simpler query way to handle it (not NVL() since there is no default value to be assigned).  For right now, I just use if apex_application.g_x01 is null, one update query; if not null, another update query.  It's kind of repeating itself, not neat...  thanks!

This post has been answered by Mike Kutz on May 19 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2017
Added on May 19 2017
3 comments
3,045 views