Difference between <> and != in SQL

前端 未结 6 1269
青春惊慌失措
青春惊慌失措 2021-01-01 15:38

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

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-01 16:14

    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.

提交回复
热议问题