Home Oracle 使用SQL语句对索引的操作
Post
Cancel

Oracle 使用SQL语句对索引的操作

创建索引

1
2
3
4
-- 创建索引
create index index_name on table_name(column_name) ;
-- 创建联合索引
create index index_name on table_name(column_name1, column_name2) ;

使用索引

1
2
-- 使用索引
select * from table_name where column_name = 1;
This post is licensed under CC BY 4.0 by the author.