isnull vs is null

后端 未结 10 1381
闹比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条回答
  •  猫巷女王i
    2020-12-06 00:48

    Also if you want to make use of the index on that column, use

    name is not null and name <> '' 
    

提交回复
热议问题