index and key's

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

index and key's

Post by pelegk2 »

what is the meaning of a col that had a key and whats the diffrence if its a key or a an index?
what is a "smart" way ti use it on queries?
thnaks in advance
peleg
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

keys and indexes are roughly the same. Using indexed columns speeds up searches, however indexing every column won't help much.. as you are demanding more of the server.
Post Reply