1.
create [索引类型] [索引名称] on [表名]([字段名])
create index myIndex on user(username)
2.
alter table [表名] add [索引类型] [索引名称]([字段名])
alter table user add index myIndex(username)
1.
create [索引类型] [索引名称] on [表名]([字段名])
create index myIndex on user(username)
2.
alter table [表名] add [索引类型] [索引名称]([字段名])
alter table user add index myIndex(username)