Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9262

Error handling inside procedure

$
0
0

Hi folks,

 

I have a piece of code that is performing a value lookup for a single string in my procedure, and it's working great;

 

select fieldValue INTO tempVariable from myTable;

 

Then I use the results of tempVariable further down in my procedure.  The problem is that occasionally no value is found and then the entire procedure stops executing.  How can I add an error handler for this?  It's not like I can evaluate the value returned in tempVariable after this line executes because the line fails to complete.  I'm not finding anything in SQL guide but I'm in a rush so maybe i'm not looking in right place.

 

Thanks,

-Patrick


Viewing all articles
Browse latest Browse all 9262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>