From the documentation:
<=>
Null safe equal:
mysql> select 1 <=> 1, NULL <=> NULL, 1 <=> NULL;
-> 1 1 0
But when I try it:
mysql> select NULL <=> NULL;
ERROR 1064: ^GYou have an error in your SQL syntax near '> NULL' at line 1
What's going on here?
Yoseif Whiteson
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.