Is there is any Performance issue while using ISNULL() in SQL Server?

后端 未结 8 1774
陌清茗
陌清茗 2020-12-15 06:51

I am using ISNULL in MS SQl server 2008, since my table is too huge, whether using of ISNULL may cause any thing to the performance ?.

Than

8条回答
  •  天涯浪人
    2020-12-15 07:23

    Watch out if using ISNULL with a sub query as the replacement_value.

    Seems like it runs the sub query even if the check_expression value is not NULL which doesn't help performance.

    CASE performs as expected.

提交回复
热议问题