There are two not equals operator – != and <>.
What’s the difference between them? I heard that != is more efficient than other for comparing strings. Could anyone give a qualitative comment on this statement.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are the same (as is the third form,
^=).Note, though, that they are still considered different from the point of view of the parser, that is a stored outline defined for a
!=won’t match<>or^=.This is unlike
PostgreSQLwhere the parser treats!=and<>yet on parsing stage, so you cannot overload!=and<>to be different operators.