SELECT THREAD_ID AS TID, SUBSTR(SQL_TEXT, 1, 50) AS SQL_TEXT, ROWS_SENT AS RS, ROWS_EXAMINED AS RE, CREATED_TMP_TABLES, NO_INDEX_USED, NO_GOOD_INDEX_USED FROM performance_schema.events_statements_history WHERE NO_INDEX_USED=1 OR NO_GOOD_INDEX_USED=1\G ...
↧