mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 23:40:58 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
11
t/pt-visual-explain/samples/const_row_not_found.sql
Normal file
11
t/pt-visual-explain/samples/const_row_not_found.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
mysql> CREATE TABLE t1 (i INT);
|
||||
mysql> explain select * from t1 where not exists ((select t11.i from t1 t11) union (select t12.i from t1 t12));
|
||||
+----+--------------+------------+--------+---------------+------+---------+------+------+--------------------------------+
|
||||
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|
||||
+----+--------------+------------+--------+---------------+------+---------+------+------+--------------------------------+
|
||||
| 1 | PRIMARY | t1 | system | NULL | NULL | NULL | NULL | 0 | const row not found |
|
||||
| 2 | SUBQUERY | NULL | NULL | NULL | NULL | NULL | NULL | NULL | No tables used |
|
||||
| 3 | SUBQUERY | NULL | NULL | NULL | NULL | NULL | NULL | NULL | no matching row in const table |
|
||||
| 4 | UNION | t12 | system | NULL | NULL | NULL | NULL | 0 | const row not found |
|
||||
| NULL | UNION RESULT | <union2,4> | ALL | NULL | NULL | NULL | NULL | NULL | |
|
||||
+----+--------------+------------+--------+---------------+------+---------+------+------+--------------------------------+
|
Reference in New Issue
Block a user