Thursday, July 15, 2021

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

SELECT * FROM table WHERE some_col IS NULL OR some_col = '';

No comments:

Post a Comment