数据库之mysql索引增删改查等相关内容-48
# 方式一:
create table t5(
id int primary key auto_increment,
name varchar(4),
email varchar(10),
unique key uni_name(name),
index xxx(email)
);
# 方式二:
alter table t5 add index xxx(email);
# 方式三:
create index yyy on t5(name);
alter table t5 drop primary key;
alter table t5 drop index xxx;