In MySQL, can I select columns only where something exists?
For example, I have the following query:
select phone, phone2 from jewishyellow.users wh
To check if field is NULL use IS NULL, IS NOT NULL operators.
IS NULL
IS NOT NULL
MySql reference http://dev.mysql.com/doc/refman/5.0/en/working-with-null.html