在一次的优化过程中,由于没有关注执行计划中type列,仅看key列来查看"使用到的索引",导致优化过程走了不少弯路. 以下面SQL为例: SELECT wave_no, SUM(IF(picking_qty IS NULL, , picking_qty)) AS PICKED_QTY, SUM(IF(differ_qty IS NULL, , differ_qty)) AS PICKED_DIFFER_QTY, SUM(IF(relocate_qty IS NULL, , reloca…
MySQL Name mysql - the MySQL command-line tool Synopsis mysql [options] db_name Description mysql is a simple SQL shell with input line editing capabilities. It supports interactive and noninteractive use. When used interactively, query results are p…