2001-09-28 07:05:54 +02:00
|
|
|
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;
|
2000-12-28 02:56:38 +01:00
|
|
|
table type possible_keys key key_len ref rows Extra
|
|
|
|
t1 index PRIMARY PRIMARY 12 NULL 2 where used; Using index
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1 where id=000000000001;
|
2000-12-28 02:56:38 +01:00
|
|
|
id
|
|
|
|
000000000001
|
2001-09-28 07:05:54 +02:00
|
|
|
delete from t1 where id=000000000002;
|
|
|
|
select * from t1;
|
2000-12-28 02:56:38 +01:00
|
|
|
id
|
|
|
|
000000000001
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1;
|