▲ | anthonyIPH 17 hours ago | |
"Instead you should: query WHERE name = ‘abc’ create an indexed UPPER(name) column" Should there be an "or" between these 2 points, or am I missing something? Why create an UPPER index column and not use it? | ||
▲ | karmakaze 17 hours ago | parent | next [-] | |
[and a third] OR use a case-insensitive collation for the name column. | ||
▲ | MiscCompFacts 12 hours ago | parent | prev [-] | |
I think they reversed the 2 expressions. You should use “WHERE UPPER(name) = ‘ABC’” if you want to use the index. |