Skip to content
Advertisement

How do I check if a column is empty or null in MySQL?

I have a column in a table which might contain null or empty values. How do I check if a column is empty or null in the rows present in a table?

Advertisement

Answer

This will select all rows where some_col is NULL or '' (empty string)

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement