在oracle數據庫中建立索引能夠加快數據的查詢速度,但是減慢了數據的更新速度。
創建索引語法:create index index_name on table_name(column_list) [tablespace tablespace_name]
index_name爲將要創建的索引名,table_name是爲之創建索引的表名,column_list是爲其創建索引的列名稱,可以基於多列創建索引。
tablespace_name是爲其創建索引的表空間。
create index name_index on Student(name) tablespace INDEXS;