Answers for "how to check if column is empty in mysql"

SQL
0

if column value is null then in mysql

SELECT 
    contactname, IFNULL(bizphone, homephone) phone
FROM
    contacts;
Posted by: Guest on November-05-2020
0

mysql return column names when table is empty

select myQuery.*
from (select 1) as ignoreMe
left join (
select * from myTable where false -- insert your query here
) as myQuery on true
Posted by: Guest on February-18-2021

Code answers related to "how to check if column is empty in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language