I have a table with an image type column, there are several rows in the table, but all rows do not yet have an image, all of them are zero. To test CASE WHEN NULL, I tried this and it gave a weird result:
SELECT CASE myImageColumn WHEN NULL THEN 0 ELSE 1 END FROM myTable
All returned rows were in column 1 (I thought 0). What is wrong here?
Your help will be greatly appreciated!
Thanks!
source share