I didn't know that MySQL was NOT case sensitive. In fact, I'm sure I just need telling what I'm doing wrong...
I need a field to be case sensitive.
At the moment it's a VARCHAR(20) and when it contains 'nick' it will return rows with queries like 'NICK' and 'NiCk'.
WHat area controls this?
Many thanks...
Nick
Case Sensitivity Operators [mysql.com]
Case Sensitivity [mysql.com]
from the above link
By default, MySQL searches are case-insensitive (although there are some character sets that are never case-insensitive, such as czech). That means that if you search with col_name LIKE 'a%', you will get all column values that start with A or a. If you want to make this search case-sensitive, use something like INSTR(col_name, "A")=1 to check a prefix. Or use STRCMP(col_name, "A") = 0 if the column value must be exactly "A".