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 Chris Miller 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
Mar 23, 2001
1
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