Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NULL safe equal

Status
Not open for further replies.

yoseif

Programmer
Joined
Mar 23, 2001
Messages
1
Location
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top