CIT 111: Introduction to Databases

SQL Indexes Explained

SQL Indexes

When to Create an Index

Clustered vs Non-clustered indexes

How to Manually Create an Index in an ERD

  1. Right-click on the table and select Edit
  2. Click on the Indexes tab
  3. Type the name of the index in the Index Name field
  4. Under Type select INDEX
  5. Click on the column(s) that you want to index.
  6. Tab to a new line
SQL INDEX in Workbench

How to Manually Add an Index to an Existing Table

  1. Right-click on the table
  2. Select Alter Table
    Alter table menu
  3. Click on the Indexes tab
    Workbench Indexes Tab
  4. Type the name of the index in the Index Name field
  5. Under Type select INDEX
  6. Click on the column(s) that you want to index.
  7. Tab to a new line
    Workbench table properties

Useful Links: