What is the equivalent of the null-safe equality operator <=> in SQLite?

我与影子孤独终老i 提交于 2020-01-14 14:43:46

问题


I need to determine what is the equivalent for SQLite of the <=> operator in MySQL.

Any idea?


回答1:


The IS and IS NOT operators work like = and != except when one or both of the operands are NULL. In this case, if both operands are NULL, then the IS operator evaluates to 1 (true) and the IS NOT operator evaluates to 0 (false)

http://www.sqlite.org/lang_expr.html#isisnot




回答2:


I have just found the "IS" operator, but not sure if it has exactly the same behaviour?



来源:https://stackoverflow.com/questions/9658125/what-is-the-equivalent-of-the-null-safe-equality-operator-in-sqlite

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