![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This feels like a stupid question, but I was unable to find the obvious answer. I have a simple SELECT query, like this: SELECT id, name, street, city, state, zip FROM table WHERE type='whatever'; Should I create an index with all of these columns in it, or just the "type" column? If it should contain all of the columns, then where does the "type" field need to be placed? Beginning of the index, end, other? |
#3
| |||
| |||
|
|
This feels like a stupid question, but I was unable to find the obvious answer. I have a simple SELECT query, like this: SELECT id, name, street, city, state, zip FROM table WHERE type='whatever'; Should I create an index with all of these columns in it, or just the "type" column? |
|
If it should contain all of the columns, |
|
then where does the "type" field need to be placed? Beginning of the index, end, other? |
![]() |
| Thread Tools | |
| Display Modes | |
| |