MySQL 查询效率

性能从最好到最差:null > system > const > eq_ref > ref > range > index > all
explain select user_id,invite_user_id,count(id) as invite_num,invite_time from user where invite_user_id != 0 group by invite_user_id;

你可能感兴趣的:(mysql,数据库,database)