Reputation: 9074
What does the <>
sign mean in MySQL? I saw it in a query, and could not understand what it is.
Upvotes: 19
Views: 19643
Reputation: 31
It means 'Not Equal' just as !=
means 'Not Equal'.
Literally the symbols mean less than and greater than. Since those two operators are mutually exclusive, putting them together is an impossibility and therefore, NOT EQUAL.
Upvotes: 3
Reputation:
It's basically the same thing as !=
. You could read <>
as "less-than or greater-than".
Upvotes: 0
Reputation: 1066
Use != operator instead. <> is some oldy goldy way of operating NOT EQUAL TO.
Upvotes: 6