Create Index

How Create Index in Oracle? explain with example

Questions by kainattu

Showing Answers 1 - 6 of 6 Answers

The CREATE INDEX statement is used to create indexes in tables.
Indexes allow the database application to find data fast; without reading the
whole table.
CREATE INDEX index_name
ON table_name (column_name)


CREATE UNIQUE INDEX index_name
ON table_name (column_name)


If you want to create an index on a combination of columns, you can list the
column names within the parentheses, separated by commas:
CREATE INDEX PIndex
ON Persons (LastName, FirstName)


  Was this answer useful?  Yes

sampra

  • Mar 6th, 2012
 

create index cr_ind on student(sid);
here i have created a index on student table on column sid

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions