In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
EXPLAIN EXTENDED displays an additional filtered field compared to the EXPLAIN command. This field indicates the percentage of rows in the table filtered by the table's criteria. In addition, after executing the EXPLAIN EXTENDED command, you can use the SHOW WARNINGS statement to view additional statement information. In MySQL 5.7.3, the EXTENDED parameter is automatically taken with the explain command.
Mysql > EXPLAIN EXTENDED SELECT t1.a, t1.an IN (SELECT t2.a FROM T2) FROM T1
+-- +
| | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+-- +
| | 1 | PRIMARY | T1 | NULL | ALL | NULL | NULL | NULL | NULL | 3 | 100.00 | NULL |
| | 2 | SUBQUERY | T2 | NULL | ALL | NULL | NULL | NULL | NULL | 4 | 100.00 | NULL |
+-- +
2 rows in set, 2 warnings (0.00 sec)
Mysql > SHOW WARNINGS\ G
* * 1. Row *
Level: Warning
Code: 1681
Message: 'EXTENDED' is deprecated and will be removed in a future release.
* 2. Row * *
Level: Note
Code: 1003
Message: / * select#1 * / select `fire`.`t1`.`a`AS `a`, (`fire`.`t1`.`a`, `fire`.`t1`.`a`in (/ * select#2 * / select `fire`.`t2`.`a`from `fire`.`t2` where 1 having 1), (`fire`.`t1`.`a`in on where ((`fire`.`t1`.`a` = `materialized- subquery`.`a`) AS `t1.an IN (SELECT t2.a FROM T2) `from `fire.`t1`)
2 rows in set (0.00 sec)
Mysql > EXPLAIN SELECT t1.a, t1.an IN (SELECT t2.a FROM T2) FROM T1
+-- +
| | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+-- +
| | 1 | PRIMARY | T1 | NULL | ALL | NULL | NULL | NULL | NULL | 3 | 100.00 | NULL |
| | 2 | SUBQUERY | T2 | NULL | ALL | NULL | NULL | NULL | NULL | 4 | 100.00 | NULL |
+-- +
2 rows in set, 1 warning (0.00 sec)
Mysql > SHOW WARNINGS\ G
* * 1. Row *
Level: Note
Code: 1003
Message: / * select#1 * / select `fire`.`t1`.`a`AS `a`, (`fire`.`t1`.`a`, `fire`.`t1`.`a`in (/ * select#2 * / select `fire`.`t2`.`a`from `fire`.`t2` where 1 having 1), (`fire`.`t1`.`a`in on where ((`fire`.`t1`.`a` = `materialized- subquery`.`a`) AS `t1.an IN (SELECT t2.a FROM T2) `from `fire.`t1`)
1 row in set (0.00 sec)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.