Quote:
|
Originally Posted by willyunger
Perhaps what you want to get is
SELECT COL1, COL2,.... WHERE COLX IS NULL
|
I really wanted to get a constant value of NULL for one or more columns. That is useful
for example when I use UNION. For example
( SELECT a.id, b.id, NULL FROM a JOIN b ON a.id = b.a_id )
UNION ALL
( SELECT a.id, NULL, c.id FROM a JOIN c ON a.id = c.a_id)
But instead of typing NULL directly I have to use CAST(NULL as INT) ...