In MySQL, can I select columns only where something exists?
For example, I have the following query:
select phone, phone2 from jewishyellow.users wh
In my case I had a varchar column, both the methods of IS NOT NULL & != '' didn't work, but the following worked for me. Just putting this out here.
IS NOT NULL
!= ''
SELECT * FROM `db_name` WHERE `column_name` LIKE '%*%'