Which is quicker COALESCE OR ISNULL?

前端 未结 6 863
忘了有多久
忘了有多久 2020-12-01 23:20

I understand the difference between these functions but my question is when checking for a single null value would ISNULL be any quicker than using COALESCE?

e.g

6条回答
  •  暖寄归人
    2020-12-02 00:17

    Please check the link to prefer ISNULL over COALESCE when given the choice is that ISNULL tends to produce query plans that are more efficient than COALESCE.

    1. ISNULL Vs COALESCE

    2. ISNULL vs COALESCE speed test

    3. Please check the Performance: ISNULL vs. COALESCE

提交回复
热议问题