isnull vs is null

后端 未结 10 1351
闹比i
闹比i 2020-12-06 00:13

I have noticed a number of queries at work and on SO are using limitations in the form:

isnull(name,\'\') <> \'\'

Is there a particul

10条回答
  •  眼角桃花
    2020-12-06 00:28

    I apparently misread your question. So let me strike my first answer and try this one:

    isnull(name,'') <> ''
    

    is a misguided shortcut for

    name is not null and name <> ''
    

提交回复
热议问题