Oracle不等于运算符 [英] Oracle Not Equals Operator

查看:81
本文介绍了Oracle不等于运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有两个不等于运算符-!=<>.

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.

推荐答案

它们是相同的(第三种形式是^=).

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 ^=.

这与PostgreSQL不同,在解析器处于解析阶段时,解析器将!=<>对待,因此您不能重载!=<>作为不同的运算符.

This is unlike PostgreSQL where the parser treats != and <> yet on parsing stage, so you cannot overload != and <> to be different operators.

这篇关于Oracle不等于运算符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆