Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique Col & Efficiency

Status
Not open for further replies.

trungson

Technical User
May 25, 2004
1
FR
Hi,

Say I have a column that is unique (but not required). Is it good to keep it or it'd slow down when *inserting* new records (checking for uniqueness)? But also, keeping the unique constraint, does it help with *selecting* a row using that column as the condition?

Eg:
SELECT * FROM table WHERE uniqueCol = 'abc'
and
INSERT INTO table (uniqueCol,value) VALUES ('abc','123')

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top