create index index_name on table_name(column_name) ; 只要你查询使用到建了索引的字段,一般都会用到索引。 --创建表 create table aaa ( a number, b number ); --创建索引 create index idx_a on aaa (a); --使用索引 select * from aaa where a=1; 这句查询就会使用索引 idx_a
简单的索引原理
最新推荐文章于 2021-01-28 06:10:35 发布