Bug #62617 EXPLAIN EXTENDED wiht DELETE, UPDATE etc.
| Submitted: | 4 Oct 2011 15:34 | Modified: | 28 Jan 2013 18:48 |
|---|---|---|---|
| Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 5.6.3, 5.6.4 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | qc | ||
[4 Oct 2011 15:34]
Peter Laursen
[4 Oct 2011 15:43]
Valeriy Kravchuk
Thank you for the problem report. Verified with current mysql-trunk: macbook-pro:trunk openxs$ bin/mysql -uroot test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.4-m5 Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> explain delete from mysql.host; +----+-------------+-------+------+---------------+------+---------+------+------+-------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+------+---------------+------+---------+------+------+-------------------+ | 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | 0 | Deleting all rows | +----+-------------+-------+------+---------------+------+---------+------+------+-------------------+ 1 row in set (0.00 sec) mysql> explain extended delete from mysql.host; +----+-------------+-------+------+---------------+------+---------+------+------+----------+-------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra | +----+-------------+-------+------+---------------+------+---------+------+------+----------+-------------------+ | 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | 0 | NULL | Deleting all rows | +----+-------------+-------+------+---------------+------+---------+------+------+----------+-------------------+ 1 row in set (0.00 sec) mysql> show warnings\G Empty set (0.00 sec)
[30 Sep 2012 11:42]
Peter Laursen
Also see http://bugs.mysql.com/bug.php?id=67022
[28 Jan 2013 18:48]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. " EXPLAIN EXTENDED can be used with SELECT, DELETE, INSERT, REPLACE, and UPDATE statements. However, the following SHOW WARNINGS statement displays a nonempty result only for SELECT statements. "
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.