~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DROP TABLE IF EXISTS t1, t2;
 
2
CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
 
3
SELECT COUNT(*) FROM t1;
 
4
COUNT(*)
 
5
4201000
 
6
SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
 
7
# Begin cleanup
 
8
SET session myisam_sort_buffer_size = @orig_myisam_sort_buffer_size;
 
9
DROP TABLE t1;