關於is null和is not null

     網上有些資料說含有 null 的列不能創建索引,還有資料說因爲一般的索引是 b_ 樹結構,而 b+ 樹不能存儲 null 值,所以 is null 和 is not null 都不能利用 索引。爲了證明以上說法,我做了一下測試。 1. 測試含有 null 的列是否能創建索引 先創建測試數據 : create table student (     id int primary key n
相關文章
相關標籤/搜索