--echo # --echo # Bug#56423: Different count with SELECT and CREATE SELECT queries --echo # --source include/have_innodb.inc CREATE TABLE t1 ( a INT, b INT, c INT, d INT, PRIMARY KEY (a), KEY (c), KEY bd (b,d) ) ENGINE = InnoDB; INSERT INTO t1 VALUES (1, 0, 1, 0), (2, 1, 1, 1), (3, 1, 1, 1), (4, 0, 1, 1); EXPLAIN SELECT a FROM t1 WHERE c = 1 AND b = 1 AND d = 1; CREATE TABLE t3 ( a INT ) SELECT a FROM t1 WHERE c = 1 AND b = 1 AND d = 1; SELECT * FROM t3; DROP TABLE t1, t3;