~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
create table t1(n int not null, key(n)) delay_key_write = 1;
 
3
select count(distinct n) from t1;
 
4
count(distinct n)
 
5
100
 
6
explain extended select count(distinct n) from t1;
 
7
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
 
8
1       SIMPLE  t1      index   NULL    n       4       NULL    200     100.00  Using index
 
9
Warnings:
 
10
Note    1003    select count(distinct "test"."t1"."n") AS "count(distinct n)" from "test"."t1"
 
11
drop table t1;