In order to avoid a "Division by zero" error we have programmed it like this:
(为了避免出现“被零除”错误,我们对此进行了如下编程:)
Select Case when divisor=0 then null
Else dividend / divisor
End ,,,
But here is a much nicer way of doing it:
(但这是一种更好的方法:)
Select dividend / NULLIF(divisor, 0) ...
Now the only problem is to remember the NullIf bit, if I use the "/" key.
(现在唯一的问题是,如果我使用“ /”键,则要记住NullIf位。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…