Original Post
So, I'm *really* not in the mood to go back to scavanging the internet for a tutorial that I can understand on the subject. So I decided to post here... What I'm trying to do is index my database so that commands such as... SELECT name,price,alcohol FROM bar WHERE alcohol > 5% ORDER BY price DESC LIMIT 0, 5; ...can be completed significantly faster. However, what I don't understand is how to make it indexed. I set something to be my PRIMARY KEY (I don't really understand what it did, but ok), and everything else I left blank. So I guess what my questions are, are....
- Is a key an index?
- The tutorials I found describe a few keys [UNIQUE|PRIMARY|{I forget}]. What do each do?
- What is the 'ALTER TABLE' command to make a field a key?
