on 01-28-2013 7:18 PM
Hi All,
In my procedure I have this select:
Select col1, col2 into v_col1, v_col2 where col3 = 'TEST' limit 1;
How to handle no_data_found Exception?
I don't found nothing about it.
Thanks.
Hi Italo,
for specifically this requirement, you can employ cursors and check after opening the cursor and fetching some data whether <cursorname>::NOTFOUND is true.
There's an example for this in the developer guide.
For just looping over the result set, you will be better off with the
FOR <row> as <cursor> DO
END FOR;
construct.
General error handling is currently not documented for SQLScript.
- Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.