常用语句
| 1 | show table status like '%table_x'; | 
| 1 | SELECT | 
| 1 | show index from table_x; | 
| 1 | desc table_x; | 
| 1 | show create table table_x; | 
| 1 | SELECT COUNT(DISTINCT xxx)/COUNT(*) AS xxx_selectivity,COUNT(*) AS total FROM table_x; | 
参考
https://dev.mysql.com/doc/refman/8.0/en/explain-output.html#explain-extra-information
order优化:https://dev.mysql.com/doc/refman/8.0/en/order-by-optimization.html
groupby优化:https://dev.mysql.com/doc/refman/8.0/en/group-by-optimization.html