oracle如何在表指定字段上创建索引的sql简单例子 和如何使用索引?

日期:2017-12-15 10:06:37 人气:2

oracle如何在表指定字段上创建索引的sql简单例子 和如何使用索引?

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
    A+
热门评论