MySQL SQL优化的实现并不难

优化复制id: 1 select_type: SIMPLE table: a type: ALL possible_keys: NULL key:NULL key_len: NULL ref: NULL rows:1000 Extra: Using where id: 2 select_type: SIMPLE table: b type: ref possible_keys: ind_company_id key:ind_comapany_id key_len: 5 ref: sakila.a.company_id rows:1 Extra: Using where;Using index 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.