Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Conditional Rollback (Oracle PLSQL to TD SP) - response (1) by dnoeth

$
0
0
Hi Eshan, in your example you simply remove the COMMITs and the WHEN OTHERS THEN ROLLBACK, because any error automatically rolls back. Of course you can simply avoid the division-by-zero error: SELECT price / NULLIF(earnings,0) INTO pe_ratio FROM stocks Dieter

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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