Re: how to remove empty rows

From: Lew <noone(at)lewscanon(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: how to remove empty rows
Date: 2011-04-27 12:52:20
Message-ID: ip93kd$dov$1@news.albasani.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jean-Yves F. Barbier wrote:
> e-letter wrote:
>> The command 'INSERT INTO' was used to enter the sum of a mathematical
>> function into a table. On a condition, the result was null, causing
>> the creation of an empty row in the table.
>>
>> Using tho command 'DELETE' with the expression:
>>
>> ...=NULL;
>>
>> does not remove the empty row. How to remove please?
>
> NULL is *NOT* a value; use ISNULL to test.

Thus comparison to equal NULL ( = NULL) or to not equal NULL ( != NULL) can
never succeed. That's why SQL has "IS NULL" and "IS NOT NULL".

--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Grzegorz Szpetkowski 2011-04-27 15:29:03 Server statistics
Previous Message Jean-Yves F. Barbier 2011-04-26 21:44:22 Re: how to remove empty rows