I'm trying to figure out an easy query I can do to test if a large table has a list of entries that has at least ONE blank (NULL / empty) value in ANY column.
I need something like
SELECT * FROM table AS t WHERE ANY(t.* IS NULL)
I don't want to have to do
SELECT * FROM table AS t WHERE t.c1 = NULL OR t.c2 = NULL OR t.c3 = NULL
This would be a HUGE query.
''– Nick Chammas Mar 12 '12 at 22:40