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!

Problem with Returning Clause

597095Sep 10 2007 — edited Sep 10 2007
Hi All,

Need some help on the Returning Clause. I ve given the example below,

update abc set abc.item_id='1315' where abc.item_id='1400'
returning abc.distribution_centre into :testvar;

Do note that there are two item_ids which satisfy the condition above.

When I try executing this, I was expecting an error saying the query returns more than one row. However, i get the following message,

ORA-24369: required callbacks not registered for one or more bind handles.

I have two qustions in relation to this,
1. How do I execute this query without getting an error?
2. How do I retrieve more than one value using the 'Returning' clause.

Any help will be appreciated.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2007
Added on Sep 10 2007
8 comments
402 views