I am trying to find the number of rows in a table with a particular column value = NULL in PostgreSQL. This is my query:
SELECT count(*)
FROM database.table
WHERE place_id = 3 AND user = (NULL);
And I get the count as 0. But there a pretty number of rows matching the query. What am I doing wrong here?
... and user is null