![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
| Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. It depends on the version; there are some subtle differences. (eg index |
#3
| |||
| |||
|
| Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. It depends on the version; there are some subtle differences. (eg index |
#4
| |||
| |||
|
| Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. It depends on the version; there are some subtle differences. (eg index |
#5
| |||
| |||
|
| Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. It depends on the version; there are some subtle differences. (eg index |
#6
| |||
| |||
|
|
Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. |
#7
| |||
| |||
|
|
Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. |
#8
| |||
| |||
|
|
Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. |
#9
| |||
| |||
|
|
Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. But, I am not as familiar with how Oracle indexes work. Thanks. |
#10
| |||
| |||
|
|
Hello, Say If I have a table with column a, and column b (say they are integers). Sometimes I will do a query with a where clause that just references column a. Sometimes I will do a query with a where clause that references both column a and b. Is there a need to create an index with a, and an index with a, b? *Or will an index with a,b work for both of the above types of queries? I know in mysql if I have an index (a, b, c), then it is useful for queries referencing a or a,b or a, b,c. *But, I am not as familiar with how Oracle indexes work. Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |