CASE vs. DECODE

前端 未结 7 1194
小蘑菇
小蘑菇 2020-11-28 09:04

Referring to a previous question, i was wondering if its always possible to replace DECODE by CASE and which one is better for performance?

7条回答
  •  执念已碎
    2020-11-28 09:43

    Both the NULL to NULL Comparison returns the value as 1 instead of DECODE returning the value of 1 and CASE returning as 0.

提交回复
热议问题