summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb/r/card_pk_2.result
blob: b1c3e679bb8a0c9d4c929405dd842a582dac89ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set default_storage_engine='tokudb';
drop table if exists tt;
set @save_use_stat_tables =  @@use_stat_tables;
set @@use_stat_tables = COMPLEMENTARY;
create table tt (a int, b int, primary key(a,b));
insert into tt values (0,0),(0,1),(1,0),(1,1);
show indexes from tt;
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment	Index_comment
tt	0	PRIMARY	1	a	A	4	NULL	NULL		BTREE		
tt	0	PRIMARY	2	b	A	4	NULL	NULL		BTREE		
analyze table tt;
Table	Op	Msg_type	Msg_text
test.tt	analyze	status	Engine-independent statistics collected
test.tt	analyze	status	OK
show indexes from tt;
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment	Index_comment
tt	0	PRIMARY	1	a	A	4	NULL	NULL		BTREE		
tt	0	PRIMARY	2	b	A	4	NULL	NULL		BTREE		
flush tables;
show indexes from tt;
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment	Index_comment
tt	0	PRIMARY	1	a	A	4	NULL	NULL		BTREE		
tt	0	PRIMARY	2	b	A	4	NULL	NULL		BTREE		
set @@use_stat_tables =  @save_use_stat_tables;
drop table tt;