0

I remember someone told me to use <> rather than != but I forgot the reason why. I cannot find the answer on Google. Just want to know if they're just the same comparison operator or not because we're on refactoring stage of our MySQL codes now.

1

1 Answer 1

3

<> is an ANSI SQL compatible operator, whereas != is not.

So presumably you must use the former, since the latter is just a mysql's sql extension.

References:

<not equals operator> ::= <>

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.