我对甲骨文有点新鲜,不确定以下哪项是高性能的。虽然他们都给了我相同的结果,但我想知道哪一个更好。
(case
when tax is null
then charge
when tax = 0
then charge
else tax end
) as tax,
或
(case
when tax is null or tax = 0
then charge
else tax end
) as tax,