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!

open for statement exception handling

Sa SiApr 26 2016 — edited Apr 27 2016

i have a procedure as below which returns ref cursor

procedure p1 (empid in number, p_data out sys_refcursor) is 

begin

open o_data for select * from emp where emp_id = empid;

---exception handle

/*

how to handle error when there are no records matching the parameter passed

*/

end;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2016
Added on Apr 26 2016
10 comments
2,932 views