要求:
普通索引
create index index_user_name on user(name);
普通索引最左前缀
create index index_user_personId on user(personId(6));
主键索引
alter table user add primary key(userid);
唯一索引
create unique index index_user_name on user(name);
多列索引
create unique index index_user_name on user(name,ename,city);