Difference between <> and != in SQL

后端 未结 6 732
青春惊慌失措
青春惊慌失措 2021-01-01 14:10

What is the exact Difference between <> and != ?

6条回答
  •  忘掉有多难
    2021-01-01 15:12

    Functionally there's no difference.

    I think this is a matter of programmer preference: '<>' may be preferred by programmers who use various flavors of Pascal or Basic, while '!=' may be preferred by those who use languages which are descendants of C (e.g. C++, Java, C#). Interestingly, though, the C-style equality comparison operator ('==') is not supported in Oracle - how about in other flavors of SQL?

    Share and enjoy.

提交回复
热议问题