Oracle Not Equals Operator

前端 未结 6 1283
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-18 15:41

There are two not equals operator - != and <>.

What\'s the difference between them? I heard that != is more efficient than

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-18 16:23

    As everybody else has said, there is no difference. (As a sanity check I did some tests, but it was a waste of time, of course they work the same.)

    But there are actually FOUR types of inequality operators: !=, ^=, <>, and ¬=. See this page in the Oracle SQL reference. On the website the fourth operator shows up as ÿ= but in the PDF it shows as ¬=. According to the documentation some of them are unavailable on some platforms. Which really means that ¬= almost never works.

    Just out of curiosity, I'd really like to know what environment ¬= works on.

提交回复
热议问题