~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to mysql-test/r/select.result

  • Committer: Alexander Nozdrin
  • Date: 2009-04-24 10:04:14 UTC
  • mfrom: (2651.1.45 mysql-6.0)
  • Revision ID: alik@sun.com-20090424100414-92m55kfywauveb56
PullĀ fromĀ 6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
4445
4445
Note    1003    select '0' AS `a`,'0' AS `b`,'0' AS `c` from `test`.`t1` where 1
4446
4446
DROP TABLE t1;
4447
4447
End of 5.1 tests
 
4448
CREATE TABLE t1 (a INT KEY, b INT);
 
4449
INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4);
 
4450
EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND a = b LIMIT 2;
 
4451
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
 
4452
1       SIMPLE  t1      range   PRIMARY PRIMARY 4       NULL    3       100.00  Using index condition; Using where; Using MRR
 
4453
Warnings:
 
4454
Note    1003    select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` = `test`.`t1`.`a`) and (`test`.`t1`.`a` > 1)) limit 2
 
4455
EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND b = a LIMIT 2;
 
4456
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
 
4457
1       SIMPLE  t1      range   PRIMARY PRIMARY 4       NULL    3       100.00  Using index condition; Using where; Using MRR
 
4458
Warnings:
 
4459
Note    1003    select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` = `test`.`t1`.`b`) and (`test`.`t1`.`a` > 1)) limit 2
 
4460
DROP TABLE t1;
 
4461
End of 6.0 tests