Oracle is one of these RDMS. It will have automatically created an index. This is good practice.
If you are searching the table on other columns then you should probably make an index on those columns to.
Tables can have more than one inex.
Many DBAs will create indexes on foreign keys to. Just a wee tip.
Main Topics
Browse All Topics





by: jamesrhPosted on 2009-10-10 at 19:09:41ID: 25544644
On most RDBMs, unique columns are actually enforced via Indexes. When you mark a column as unique the system creates an index for you.