Hi everyone, is there any performance difference btw the following WHERE criteria.
WHERE abcfield = 'XXXX'
vs
WHERE abcfield <> 'XXXX'
A)There are same number of records that for each of the above criteria
B) abcfield is indexed.
This has been puzzling me. At first i thought that WHERE abcfield <> 'XXXX' would be slower, but thinking abt how mysql uses indexes, it might not necessarily be the case.
Thanks!!!
WHERE abcfield = 'XXXX'
vs
WHERE abcfield <> 'XXXX'
A)There are same number of records that for each of the above criteria
B) abcfield is indexed.
This has been puzzling me. At first i thought that WHERE abcfield <> 'XXXX' would be slower, but thinking abt how mysql uses indexes, it might not necessarily be the case.
Thanks!!!