Jak sprawdzić, czy rzędy DB COL jest puste
SELECT * FROM table WHERE some_col IS NULL OR some_col = '';
Silly Skylark
SELECT * FROM table WHERE some_col IS NULL OR some_col = '';
SELECT * from TABLE where CODE IS NULL OR CODE!='C'
SELECT
id,
user_id,
charge,
IF(status IS NULL or status = '', 'PENDING', status) as status
FROM `user_payments`