table 有两个相同最大长度的字段 a,b
select a,b from table where a is null;
select a,b from table where b is not null;
这两个在性能上 是一样的吗
table 有两个相同最大长度的字段 a,b
select a,b from table where a is null;
select a,b from table where b is not null;
这两个在性能上 是一样的吗
|
rainymoring1995Sep 1, 2021
1
看一下执行计划就知道了
|
|
2
is not null 会索引失效
|