索引分类、创建索引、删除索引
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;
本文来自博客园,作者:Javanumberone,转载请注明原文链接:https://www.cnblogs.com/stm32stm32/p/5738266.html
posted on 2016-08-04 20:19 Javanumberone 阅读(505) 评论(0) 编辑 收藏 举报