Re: "NOT NULL" - Mailing list pgsql-novice

From Jaime Casanova
Subject Re: "NOT NULL"
Date
Msg-id c2d9e70e05052322285c8c7dc3@mail.gmail.com
Whole thread Raw
In response to "NOT NULL"  (tövis <tovises@freemail.hu>)
List pgsql-novice
On 5/23/05, tövis <tovises@freemail.hu> wrote:
> Thanks Jaime!
> Using pgAdmin III selected all rows:
> SELECT aid,num,name30 FROM nod ORDER BY num;
>
> First rows from result in a CSV file:
>
> aid;num;name30
> "374";"0";"2181                          "
> "371";"0";"2178                          "
> ...
>
> Is this a NULL or not? May be the method is not precise enough?
>
>
The better way you can prove that is:
SELECT aid,num,name30 FROM nod
WHERE num IS NULL ORDER BY num;

like Andreas said NULL is not 0, NULL is "unknown".

BTW, do the reply in this thread, that will do searches in
archives.postgresql.org easier.

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

pgsql-novice by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: [despammed] "NOT NULL"
Next
From: tövis
Date:
Subject: Re: "NOT NULL"