In mysql table real_account_id
's data type is int(11)
.
I want to fetch all records with NULL values.
I am using this simple query.
SELECT * FROM `customer_payment_options` WHERE real_account_id = NULL
But, it's not giving me any results. There are 2 records in database with NULL value. I also tried with,
SELECT * FROM `customer_payment_options` WHERE real_account_id = 'NULL'
Why is it like this? Thanks.