FWQ
MySQL SELECT查询包含大量字段时,索引失效的原因是什么?
select查询指定字段对索引失效影响 问题描述: 有一条select查询,包含大量字段,在某些情况下会使用索引,而在另一些情况下则不会。当查询中注释掉其中一个字段时,索引就会被使用。 表结构: create table base_project_court ( id varchar(32) not null, name varchar(30) not null, ... ); create table dev_device_log ( id bigint(20) not null, court_id varchar(32)…