问题
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