linux php mysql if column is not null or not empty code example Example: mysql check if not null SELECT * FROM table WHERE YourColumn IS NOT NULL;