summaryrefslogtreecommitdiff
path: root/mysql-test/r/compare.result
blob: 07f9ce4e81a75f1e2d904e14a502ac951d9b3c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
drop table if exists t1;
CREATE TABLE t1 (id CHAR(12) not null, PRIMARY KEY (id));
insert into t1 values ('000000000001'),('000000000002');
explain select * from t1 where id=000000000001;
table	type	possible_keys	key	key_len	ref	rows	Extra
t1	index	PRIMARY	PRIMARY	12	NULL	2	where used; Using index
select * from t1 where id=000000000001;
id
000000000001
delete from t1 where id=000000000002;
select * from t1;
id
000000000001
drop table t1;