Comments - <=>

3 years, 4 months ago Ryan Leadenham

Not sure why there isn't a simliar page for "<>"... but it's not as safe as some developers might assume. For example:

NULL <> TRUE

will return NULL which is falsy. Since it's a double negative, it could execute as if NULL does equal TRUE such as in an IF() statement.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.