Is 'IS DISTINCT FROM' a real MySQL operator?

有些话、适合烂在心里 提交于 2019-11-29 07:49:37

is distinct from is defined in the SQL:2003 standard and is a null-safe operator to compare two values.

MySQL supports a "null safe equals" operator: <=>. If that is negated, you get the same behaviour. (the <=> corresponds to is not distinct from)

SELECT * 
FROM inw 
WHERE not id <=> 4;

SQLFiddle: http://sqlfiddle.com/#!2/0abf2a/3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!