× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.

I like using null's as God intended them.

However if you feel you just have to change them to some default value then I recommend IFNULL at
I find it easier to understand for the newbie.

COALESCE is also an option. And it might even predate IFNULL. However most people have to go to the manual to find out what that means. And it's probably even more fun to the "English as a second language" crowd.

If you want to get more obscure you could try VALUE which works exactly the same as COALESCE however the manual clearly states: COALESCE should be used for conformance to the SQL 2003 standard.

Which begs the question: Is IFNULL sql standard or should one use COALESCE?

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.