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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HEAP indexing

Status
Not open for further replies.

dmcub

MIS
Nov 1, 2002
3
US
Hi.

In a heap table does index get placed on every column or only some? Can you force uniqueness by using it?

For example, in a product table
ID int PK
product_code varchar(5)
product_abbrv varchar(10)

I need to be able to search quickly by both ID and product_code, and enforce unique product_code to prevent entering new products w/conflicting product codes.

Thanks for reading, any help will be appreciated.

dmcub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top