mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 07:06:28 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
12
t/pt-visual-explain/samples/dual_union_in_subquery.sql
Normal file
12
t/pt-visual-explain/samples/dual_union_in_subquery.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
mysql> explain select 1 in (select 1 union select 2);
|
||||
+----+--------------------+------------+------+---------------+------+---------+------+------+----------------+
|
||||
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|
||||
+----+--------------------+------------+------+---------------+------+---------+------+------+----------------+
|
||||
| 1 | PRIMARY | NULL | NULL | NULL | NULL | NULL | NULL | NULL | No tables used |
|
||||
| 2 | DEPENDENT SUBQUERY | NULL | NULL | NULL | NULL | NULL | NULL | NULL | No tables used |
|
||||
| 3 | DEPENDENT UNION | NULL | NULL | NULL | NULL | NULL | NULL | NULL | No tables used |
|
||||
| NULL | UNION RESULT | <union2,3> | ALL | NULL | NULL | NULL | NULL | NULL | |
|
||||
+----+--------------------+------------+------+---------------+------+---------+------+------+----------------+
|
||||
4 rows in set (0.00 sec)
|
||||
|
||||
mysql> notee
|
Reference in New Issue
Block a user