|
How to shield from a division by zero error!
Because the value of the expression is applied to the dynamic SQL (such as exec sp_executesql @ sql, N '@ va numeric (18,6) output', @ va output),
There is a division operation in the expression, and there may be a division by zero, and the program will exit. How can this mask the error?
Write 0 to the result to continue running? |
|