top | item 45627713

(no title)

anthonyIPH | 4 months 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?

discuss

order

karmakaze|4 months ago

[and a third] OR use a case-insensitive collation for the name column.

MiscCompFacts|4 months ago

I think they reversed the 2 expressions. You should use “WHERE UPPER(name) = ‘ABC’” if you want to use the index.