标签:



1、普通索引没有索引类型:


2、唯一性索引:


索引起别名:


3、多列索引:


在已有表上创建索引:
表4

CREATE INDEX index_userName ON t_user4(userName);

创建唯一性索引:(有别名)
CREATE UNIQUE INDEX index_password ON t_user4(PASSWORD);

多列索引:

4、用ALTER TABLE创建索引:

唯一性索引:

多列索引:

删除索引:
DROP INDEX index_password ON t_user5;
标签:
原文地址:http://www.cnblogs.com/stm32stm32/p/5738266.html