Array comparisons involving NULL - Mailing list pgsql-hackers

From Michael Fuhr
Subject Array comparisons involving NULL
Date
Msg-id 20051127235710.GA66009@winnie.fuhr.org
Whole thread Raw
List pgsql-hackers
Is there a built-in way to look for NULL array elements?  I was
thinking of something like NULL IS DISTINCT FROM ALL (array expression)
but that doesn't work:

test=> SELECT NULL IS DISTINCT FROM ALL (ARRAY[1, 2, 3]);
ERROR:  syntax error at or near "ALL" at character 30
LINE 1: SELECT NULL IS DISTINCT FROM ALL (ARRAY[1, 2, 3]);                                    ^

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Using multi-row technique with COPY
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Using multi-row technique with COPY