On Wed, 11 Aug 2004, Traci Sumpter wrote:
> A team developer has chosen the lazy way of not checking if a variable
> exists on his PHP page and has code which produces the following SQL
>
> SELECT * FROM mytable where myfield ilike '%%'
>
> I have noticed that this statement does not return null or empty myfield
> records.
It should not return true for NULLs but should for empty fields (which it
does AFAICS).
If you want to get the NULLs as well you'll need to explicitly OR myfield
is NULL.