I am working on a project of migrating from MySQL to PostgreSQL, some function can't works well in PostgreSQL like IFNULL
function. Some tutorials say that in PostgreSQL we can use NULLIF
to handle it.
When I try I get an issue "argument of NOT must be type boolean, not type integer
".
This is the simple SQL :
SELECT * FROM `tableA` WHERE not(nullif(columnA, 0));
How to solve it? Maybe some one can make an explain how can it works well. Thanks