mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-30032: EXPLAIN FORMAT=JSON output: print costs
Basic printout for join and table execution costs.
This commit is contained in:
@ -20,6 +20,7 @@ INSERT INTO t2 VALUES (3,'United States');
|
||||
CREATE TABLE t3 (b INT, c VARCHAR(3), PRIMARY KEY (c,b)) ENGINE=InnoDB;
|
||||
INSERT INTO t3 VALUES (4,'USA'),(5,'CAN');
|
||||
|
||||
--source include/explain-no-costs.inc
|
||||
EXPLAIN FORMAT=JSON SELECT * FROM t1 WHERE 0 < ALL (
|
||||
SELECT tbl_alias1.column_name_1 FROM t2 AS tbl_alias1, t3 AS tbl_alias2
|
||||
WHERE tbl_alias2.b = tbl_alias1.column_name_1 AND tbl_alias2.c = tbl_alias1.column_name_2
|
||||
|
Reference in New Issue
Block a user