oracle——笔记——索引简介

索引 index;

作用:提高查询速度

创建索引的规则:
1)经常出现在where中的列 适合创建为索引列

2)经常作为表之间的连接条件的列

3)值域/取值范围广、空值多

4)表中数据量大

关于索引的sql语句:

1create index 索引名 on 表(列);
2drop index 索引名;
3alter index 索引名 rebuild; --重建索引

 

posted @ 2020-02-03 23:53  小白龙白龙马  阅读(106)  评论(0编辑  收藏  举报