MySQL中會使索引失效的幾種情況

      有表 test ;字段 id int(11) default null,mark varchar(20) default null;索引key_test_id在id上: 1.當查詢條件帶有is null的時候: 可以看到使用了索引。 2.當查詢條件是is not null的時候: 可以看到沒有使用索引。         從網上查一些資料得知,MySQL存儲NULL值是需要空間的,NUL
相關文章
相關標籤/搜索