Home >> FAQs/Tutorials >> Oracle Tutorials
Oracle Tutorials - CREATE INDEX - Create a Table Index
(Continued from previous topic...)
How To Create a Table Index?
If you have a table with a lots of rows, and you know that one of the columns
will be used often a search criteria, you can add an index for that column
to in improve the search performance. To add an index, you can use the
CREATE INDEX statement as shown in the following script:
CREATE TABLE tip (id NUMBER(5) PRIMARY KEY,
subject VARCHAR(80) NOT NULL,
description VARCHAR(256) NOT NULL,
create_date DATE DEFAULT (sysdate));
CREATE INDEX tip_subject ON tip(subject);
(Continued on next topic...)
- What Are DDL Statements?
- How To Create a New Table?
- How To Create a New Table by Selecting Rows from Another Table?
- How To Add a New Column to an Existing Table?
- How To Delete a Column in an Existing Table?
- How To Drop an Existing Table?
- How To Create a Table Index?
- How To Rename an Index?
- How To Drop an Existing Index?
- How To Create a New View?
- How To Drop an Existing View?