Best way to check for NULL value in MySql query
        Posted  
        
            by PHP-Prabhu
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by PHP-Prabhu
        
        
        
        Published on 2010-05-16T12:31:07Z
        Indexed on 
            2010/05/16
            12:50 UTC
        
        
        Read the original article
        Hit count: 338
        
mysql
|mysql-query
Can any one please let me know the best way to use IF statement in mysql query to show if the "email" field is NULL then it should show as "no email"...
Postcode    Telephone             Email
----------------------------------------------------------
BS20 0QN    1275373088         no email
BS20 0QN    1275373088         no email
PO9 4HG 023 92474208        [email protected]
SO43 7DS    07801 715200       [email protected]
----------------------------------------------------------
        © Stack Overflow or respective owner