关于is null和is not null

     网上有些资料说含有 null 的列不能创建索引,还有资料说因为一般的索引是 b_ 树结构,而 b+ 树不能存储 null 值,所以 is null 和 is not null 都不能利用 索引。为了证明以上说法,我做了一下测试。 1. 测试含有 null 的列是否能创建索引 先创建测试数据 : create table student (     id int primary key n
相关文章
相关标签/搜索