📜  sql代码示例中除以零错误

📅  最后修改于: 2022-03-11 15:05:23.799000             🧑  作者: Mango

代码示例3
#Replace the result of divide by zero with 0

SELECT COALESCE(dividend / NULLIF(divisor,0), 0) 
FROM sometable