~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to tests/r/select.result

  • Committer: Jay Pipes
  • Date: 2009-08-03 14:23:22 UTC
  • mfrom: (1039.2.68 staging)
  • mto: This revision was merged to the branch mainline in revision 1078.
  • Revision ID: jpipes@serialcoder-20090803142322-1g67h7su9mocg9ig
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
3072
3072
t3.a=t2.a AND t3.c IN ('bb','ee');
3073
3073
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3074
3074
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
3075
 
1       SIMPLE  t2      range   si      si      5       NULL    4       Using where; Using MRR
 
3075
1       SIMPLE  t2      range   si      si      5       NULL    4       Using where
3076
3076
1       SIMPLE  t3      eq_ref  PRIMARY,ci      PRIMARY 4       test.t2.a       1       Using where
3077
3077
EXPLAIN
3078
3078
SELECT t3.a FROM t1,t2,t3
3088
3088
t3.c IN ('bb','ee');
3089
3089
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3090
3090
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
3091
 
1       SIMPLE  t2      range   si      si      5       NULL    2       Using where; Using MRR
 
3091
1       SIMPLE  t2      range   si      si      5       NULL    2       Using where
3092
3092
1       SIMPLE  t3      eq_ref  PRIMARY,ci      PRIMARY 4       test.t2.a       1       Using where
3093
3093
EXPLAIN 
3094
3094
SELECT t3.a FROM t1,t2,t3
3096
3096
t3.c IN ('bb','ee');
3097
3097
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3098
3098
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
3099
 
1       SIMPLE  t2      range   si,ai   si      5       NULL    2       Using where; Using MRR
 
3099
1       SIMPLE  t2      range   si,ai   si      5       NULL    2       Using where
3100
3100
1       SIMPLE  t3      eq_ref  PRIMARY,ci      PRIMARY 4       test.t2.a       1       Using where
3101
3101
DROP TABLE t1,t2,t3;
3102
3102
CREATE TABLE t1 ( f1 int primary key, f2 int, f3 int, f4 int, f5 int, f6 int, checked_out int);
3216
3216
AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
3217
3217
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
3218
3218
1       SIMPLE  t2      const   PRIMARY PRIMARY 4       const   1       
3219
 
1       SIMPLE  t1      range   ts      ts      5       NULL    1       Using where; Using MRR
 
3219
1       SIMPLE  t1      range   ts      ts      5       NULL    1       Using where
3220
3220
SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30
3221
3221
AND t1.ts BETWEEN t2.dt1 AND t2.dt2
3222
3222
AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";