So überprüfen Sie einen dB -spezifischen Zeilen Col ist leer
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`