~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/group_min_max.result

  • Committer: Monty Taylor
  • Date: 2010-09-28 07:45:44 UTC
  • mto: (1799.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1800.
  • Revision ID: mordred@inaugust.com-20100928074544-s3ujnv6s8wro74l2
Added BSD copying file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1974
1974
BB
1975
1975
EXPLAIN SELECT a FROM t1 WHERE a='AA' GROUP BY a;
1976
1976
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1977
 
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   4       Using where; Using index
 
1977
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   2       Using where; Using index
1978
1978
EXPLAIN SELECT a FROM t1 WHERE a='BB' GROUP BY a;
1979
1979
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1980
1980
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   1       Using where; Using index
2120
2120
6       4
2121
2121
SHOW STATUS LIKE 'handler_read__e%';
2122
2122
Variable_name   Value
2123
 
Handler_read_key        23
 
2123
Handler_read_key        22
2124
2124
Handler_read_next       0
2125
2125
EXPLAIN (SELECT max(b), a FROM t1 GROUP BY a) UNION 
2126
2126
(SELECT max(b), a FROM t1 GROUP BY a);
2171
2171
INSERT INTO t3 SELECT a,MAX(b) FROM t1 GROUP BY a;
2172
2172
SHOW STATUS LIKE 'handler_read__e%';
2173
2173
Variable_name   Value
2174
 
Handler_read_key        12
 
2174
Handler_read_key        11
2175
2175
Handler_read_next       0
2176
2176
DELETE FROM t3;
2177
2177
FLUSH STATUS;