~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/range.result

  • Committer: Lee Bieber
  • Date: 2010-12-03 01:16:19 UTC
  • mfrom: (1819.9.81 update-innobase)
  • Revision ID: kalebral@gmail.com-20101203011619-n6v584rijwdet05b
Merge Stewart - update Innobase plugin based on InnoDB 1.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
explain select * from t1, t2 where (t1.key1 <t2.keya + 1) and t2.keya=3;
254
254
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
255
255
1       SIMPLE  t2      ref     j1      j1      4       const   1       Using index
256
 
1       SIMPLE  t1      range   i1      i1      4       NULL    3       Using where; Using index; Using join buffer
 
256
1       SIMPLE  t1      index   i1      i1      4       NULL    7       Using where; Using index; Using join buffer
257
257
explain select * from t1 force index(i1), t2 force index(j1) where 
258
258
(t1.key1 <t2.keya + 1) and t2.keya=3;
259
259
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
260
260
1       SIMPLE  t2      ref     j1      j1      4       const   1       Using index
261
 
1       SIMPLE  t1      range   i1      i1      4       NULL    3       Using where; Using index; Using join buffer
 
261
1       SIMPLE  t1      index   i1      i1      4       NULL    7       Using where; Using index; Using join buffer
262
262
DROP TABLE t1,t2;
263
263
CREATE TEMPORARY TABLE t1 (
264
264
a int default NULL,
659
659
insert into t1 values ('x'), ('xx');
660
660
explain select a from t1 where a > 'x';
661
661
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
662
 
1       SIMPLE  t1      range   a       a       7       NULL    1       Using where
 
662
1       SIMPLE  t1      range   a       a       7       NULL    2       Using where
663
663
select a from t1 where a > 'x';
664
664
a
665
665
xx
868
868
(55,'C'), (56,'C'), (57,'C'), (58,'C'), (59,'C'), (60,'C');
869
869
EXPLAIN SELECT * FROM t1 WHERE status <> 'A' AND status <> 'B';
870
870
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
871
 
1       SIMPLE  t1      range   status  status  83      NULL    28      Using where; Using index
 
871
1       SIMPLE  t1      range   status  status  83      NULL    10      Using where; Using index
872
872
EXPLAIN SELECT * FROM t1 WHERE status NOT IN ('A','B');
873
873
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
874
 
1       SIMPLE  t1      range   status  status  83      NULL    28      Using where; Using index
 
874
1       SIMPLE  t1      range   status  status  83      NULL    10      Using where; Using index
875
875
SELECT * FROM t1 WHERE status <> 'A' AND status <> 'B';
876
876
id      status
877
877
53      C
894
894
60      C
895
895
EXPLAIN SELECT status FROM t1 WHERE status <> 'A' AND status <> 'B';
896
896
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
897
 
1       SIMPLE  t1      range   status  status  83      NULL    28      Using where; Using index
 
897
1       SIMPLE  t1      range   status  status  83      NULL    10      Using where; Using index
898
898
EXPLAIN SELECT status FROM t1 WHERE status NOT IN ('A','B');
899
899
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
900
 
1       SIMPLE  t1      range   status  status  83      NULL    28      Using where; Using index
 
900
1       SIMPLE  t1      range   status  status  83      NULL    10      Using where; Using index
901
901
EXPLAIN SELECT * FROM t1 WHERE status NOT BETWEEN 'A' AND 'B';
902
902
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
903
 
1       SIMPLE  t1      range   status  status  83      NULL    18      Using where; Using index
 
903
1       SIMPLE  t1      range   status  status  83      NULL    9       Using where; Using index
904
904
EXPLAIN SELECT * FROM t1 WHERE status < 'A' OR status > 'B';
905
905
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
906
 
1       SIMPLE  t1      range   status  status  83      NULL    18      Using where; Using index
 
906
1       SIMPLE  t1      range   status  status  83      NULL    9       Using where; Using index
907
907
SELECT * FROM t1 WHERE status NOT BETWEEN 'A' AND 'B';
908
908
id      status
909
909
53      C