table 有两个相同最大长度的字段 a,b
select a,b from table where a is null;
select a,b from table where b is not null;
这两个在性能上 是一样的吗
3 条回复 • 2021-09-01 13:14:54 +08:00
|
1
rainymoring1995 2021 年 9 月 1 日
看一下执行计划就知道了
|
|
2
jtwor 2021 年 9 月 1 日 is not null 会索引失效
|
|
3
blackshow 2021 年 9 月 1 日
|